ept-tools icon indicating copy to clipboard operation
ept-tools copied to clipboard

Cannot translate to 3D Tiles without an SRS code

Open claustres opened this issue 3 years ago • 4 comments

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"

claustres avatar Feb 11 '22 16:02 claustres

Hitting the same error.

kgrunenberg avatar Feb 17 '22 21:02 kgrunenberg

Also hitting the same error.

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

pol-todo avatar Aug 03 '22 16:08 pol-todo

@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"
  }

claustres avatar Aug 03 '22 16:08 claustres

@claustres Thank so much!

pol-todo avatar Aug 03 '22 16:08 pol-todo