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

Untwine crashes while reading some las files with incorrectly specified global wkt encoding bit #165

Closed
harveybia opened this issue May 30, 2024 · 3 comments

Comments

@harveybia
Copy link
Contributor

Some las files have incorrectly specified global wkt encoding bit, an example file can be found here (credit to qgis/QGIS#51862 (comment)): https://drive.google.com/file/d/17VvGIpInvSQk1sSlA6kOBzQ5ppHUJQyW/view

untwine --files /path/to/e6280n58255_orbost_2019apr02_mpts-c2_v10cm_ahd-mga55.laz --output_dir /tmp/out.laz --single_file
Untwine Error: readers.las: Global encoding WKT flag not set for point format 6 - 10.

This can be worked around by specifying --nosrs to PDAL's reader.las pipeline (see: PDAL/PDAL#3818). Currently in untwine there is no way to do that. This PR allows us to pass nosrs to the reader:
#164

@abellgithub
Copy link
Collaborator

Is there some reason that you can't correct your file?

@harveybia
Copy link
Contributor Author

Is there some reason that you can't correct your file?

One technically could, through:
https://gist.github.com/wburt/f0c5a91cc5c30a1c8719adde7ba951d0

But for us providing a way to make the conversion pipeline robust to bad WKT without modifying user uploaded files is very helpful.

@harveybia harveybia reopened this May 31, 2024
@harveybia
Copy link
Contributor Author

Closing this as this is now merged:
#164
Also according to hobu, PDAL will relax broken las global encoding WKT flag to a warning for version 2.7.2+

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

2 participants