Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot translate to 3D Tiles without an SRS code #28

Open
claustres opened this issue Feb 11, 2022 · 4 comments
Open

Cannot translate to 3D Tiles without an SRS code #28

claustres opened this issue Feb 11, 2022 · 4 comments

Comments

@claustres
Copy link

This error is raised when I try to convert to a Cesium tileset: ept tile -i E:\GeoData\LIDARHD_1-0_LAZ_NP-0822_6319-2021\tilesets\Semis_2021_0822_6318_LA93_IGN69.ept\ept.json -o E:\GeoData\LIDARHD_1-0_LAZ_NP-0822_6319-2021\tilesets\Semis_2021_0822_6318_LA93_IGN69.cesium

The tile set has been build using: docker run -it -v E:\GeoData\LIDARHD_1-0_LAZ_NP-0822_6319-2021:/entwine connormanning/entwine build -i /entwine/Semis_2021_0822_6318_LA93_IGN69.laz -o /entwine/tilesets/Semis_2021_0822_6318_LA93_IGN69.ept -r EPSG:2154 EPSG:4978

When I look at my ept.json I can see this:

 "srs": {
    "wkt": "GEOCCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Geocentric X\",OTHER],AXIS[\"Geocentric Y\",OTHER],AXIS[\"Geocentric Z\",NORTH],AUTHORITY[\"EPSG\",\"4978\"]]"
  }

However when debugging it appears the error is raised here because looking at the code here it is not looking for a wkt but for a horizontal/authority properties. I've made it work by adding this manually to the srs:

"authority": "EPSG",
"horizontal": "4978"
@kgrunenberg
Copy link

Hitting the same error.

@pol-todo
Copy link

pol-todo commented Aug 3, 2022

Also hitting the same error.

@claustres How did you add this manually? Could you post a code-snippet?

@claustres
Copy link
Author

@paulterinho Just like explained in my comment, replace the srs in the ept.json file by:

"srs": {
    "wkt": "GEOCCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Geocentric X\",OTHER],AXIS[\"Geocentric Y\",OTHER],AXIS[\"Geocentric Z\",NORTH],AUTHORITY[\"EPSG\",\"4978\"]]",
    "authority": "EPSG",
    "horizontal": "4978"
  }

@pol-todo
Copy link

pol-todo commented Aug 3, 2022

@claustres Thank so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants