-
Notifications
You must be signed in to change notification settings - Fork 22
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 changes extra bytes attributes from int to float #155
Comments
What I see in the code should generate doubles. Is this what you're seeing? |
Yes. In the input laz file they are unsigned integers. I'd expect them to be the same in the generated copc. |
Right. I just wanted to confirm that you were seeing what I expected given the code. |
I have a similar problem. In my LAS file, I have I used untwine built from the main branch (255d30b) Attaching the original file and COPC created with untwine. |
@nazarred : Currently Untwine uses PDAL to read data and PDAL does not maintain scale/offset for extra bytes dimensions -- that information is lost. At the time the data is read, it is treated as a double (after scale and offset are applied). There are a few reasons for this, but I don't think it's going to change -- it's been this way for at least a decade. If you need to maintain scale/offset in extra dimensions when transforming from LAS to COPC and can provide funding, please contact us. |
@abellgithub Is this why QGIS drops my confidence and x,y,z normal fields (stored in extra byte fields) from a laz pointcloud created with Metashape? How much funding would it take for this capability to be added? Sample laz file containing data in user byte fields attached |
The normals in your file are scaled extra bytes dimensions. If you're converting this file to COPC with Untwine, those dimensions will be transformed into double-precision values. The confidence value is not scaled. I have no idea why this data is being dropped by QGIS. I would ask the QGIS folks.
|
Given the following sample file from qgis/QGIS#54365
https://github.com/qgis/QGIS/files/12435659/example.zip
9fafef0 built with pdal 2.6.0
The text was updated successfully, but these errors were encountered: