-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
PDAL prevents LAS/LAZ 1.4 from opening if global_encoding set as 1 #51862
Comments
Is it qgis specific or should this be reported directly in PDAL instead? |
Good point. PDAL info doesn't read it either. |
@lgouzin can you share such a file that fails to load? |
I have the same issue and whatever I tried I couldn't make it work. Anyone know exactly where to put the |
I'd argue this is not a bug, rather a strict implementation of the laz spec by pdal. Global encoding is a bit field, comprising of 16 individual bits, 5 of which are actually used:
Point formats 6-10 (laz 1.4) require by the laz spec a WKT srs definition which also means bit 4 to be set to 1. Your las file properly includes a WKT srs definition but the global encoding value is bad, as it is
making it essentially invalid according to the laz spec, which is why pdal also doesn't read it. I believe the intention there was to have only the wkt bit set, ie |
That's right, global_encoding should not be 1 in this dataset. |
A quick summary of the current state:
In QGIS 3.38, the "untwine" command that indexes point cloud files has a new The proper solution will be to upgrade to PDAL >= 2.7.2 in the QGIS installers. |
What is the bug or the crash?
In QGIS 3.26, 3.28, some point-cloud files in LAS or LAZ 1.4 can not get loaded. This seems to be caused by PDAL preventing to read when global_encoding is set to 1
Steps to reproduce the issue
Load a LAS/LAZ 1.4 with Global encoding set to 1. The file does not load and returns an error message. The same file loads fine in other software.
Versions
QGIS version
3.28.3-Firenze
QGIS code revision
c12bcb2
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.6.2
PROJ version
9.1.1
EPSG Registry database version
v10.076 (2022-08-31)
GEOS version
3.11.1-CAPI-1.17.1
SQLite version
3.39.4
PDAL version
2.4.3
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009
Active Python plugins
autoSaver
2.6
LAStools
1.4
nominatim
1.4.2
ntv2_transformations
0.20
OSMDownloader
1.0.3
plugin_reloader
0.9.1
pointsamplingtool
0.5.3
qchainage
3.0.1
QuickOSM
2.0.0
quick_map_services
0.19.31
Serval
3.10.2
slyr_community
4.0.6
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
sagaprovider
2.12.99
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: