wonder-sk / point-cloud-experiments

Just some prototyping for QGIS point clouds implementation
1 stars 0 forks source link

EPT parser: read XYZ offset/scale from .laz metadata #75

Open wonder-sk opened 3 years ago

wonder-sk commented 3 years ago

There is an issue in PDAL that is affecting both entwine and untwine - https://github.com/PDAL/PDAL/issues/3235 - as a result, the offset reported in ept.json may not be consistent with the actual offsets stored in .laz files in the ept-data subdir.

Only the laszip dataType is affected - with binary and zstandard encodings the offset/scale is only stored only once (in ept.json). So with binary/zstandard dataType we should keep reading offset/scale from ept.json, but with laszip we need to read that e.g. from the root .laz node (all other nodes should have the same offset/scale.

wonder-sk commented 3 years ago

Related entwine issue: https://github.com/connormanning/entwine/issues/245