connormanning / ept-tools

Entwine Point Tile point cloud utilities
https://entwine.io
MIT License
54 stars 27 forks source link

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

Open claustres opened 2 years ago

claustres commented 2 years ago

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 commented 2 years ago

Hitting the same error.

paulterinho commented 2 years ago

Also hitting the same error.

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

claustres commented 2 years ago

@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"
  }
paulterinho commented 2 years ago

@claustres Thank so much!