-
Notifications
You must be signed in to change notification settings - Fork 814
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
Raw LAS WKT seem not to render with projinfo #2022
Comments
Using GDAL 3.0.4 and PROJ 7.0.0, and Is it possible that the misbehaviour of |
Maybe the Conus Albers in wkt1 can be read by
Subsetting the input string to drop the COMP...[] bracketting, I see:
I can see something that ballpark-works, because the LAS WKT includes an unavailable grid referred to as local file in the input. Are there guidelines for working with LAS WKT input strings? R packages using LAS are using R-spatial packages sp and sf too, and these are using PROJ and GDAL. Should I raise this on the PROJ mailing list? |
For more information about LAS WKT see the format specification section 3.2 here. The specification states (among other)
But in practice it is a string so there is no technical guard and a data provider could put a string that is not compliant with the specs. |
Those WKT strings aren't compliant with the http://portal.opengeospatial.org/files/?artifact_id=999 spec (nor any other WKT spec I'm aware of)
|
CC @hobu who has likely seen his share of crazy LAS WKT... |
I think this answers the question. There are also many LAS file in the wild that record non-existing epsg code so I'm not surprised. |
Thanks, GDAL's SRS So maybe there is a way of warning users that their LAS coordinate reference system fails on coercion to |
OGRSpatialReference::importFromWkt() leverages proj_create_from_wkt() which has options to get warnings and errors. |
I believe it was Merrick MARS that had a broken WKT writer for a release or two. Is that In cases such as these, with PDAL were throwing an error to the user and telling them to manually override them to something resembling what was provided that's actually valid. |
@hobu the header contains
|
@Jean-Romain hmph. I haven't seen bunk WKT out of that software before. Maybe they allowed the user to manually copy/paste WKT into the file or something (RIEGL software allows this!). |
I feel that rlas and lidr will need to check WKT credibility (like declared EPSG) - I'll try to provide and expose a function in rgdal to do this, probably based on |
Slightly related to that topic : #2024 . This will recognize "official" WKT1:ESRI syntax for VERTCS[]. Will not directly help for the 2 cases mentioned in #2022 (comment) |
Thanks, sounds sensible to accommodate a potentially larger user group. |
In edzer/sp#75, the reported issue shifted from a problem between two R packages which is not relevant here to one of ingesting LAS 1.4 WKT strings. Comment:
shows two WKT strings extracted from headers of LAS files in the wild, discussed in the sp issue. I cannot find a way of running them through
projinfo
to try to see what gets included; the arbitrary use/omission of the vertical CRS seems worrying. Has the use of LAS WKT been examined, and what should I have been doing?The text was updated successfully, but these errors were encountered: