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

Unable to convert scaled value to int32 #46

Closed
wonder-sk opened this issue Jan 20, 2021 · 1 comment
Closed

Unable to convert scaled value to int32 #46

wonder-sk opened this issue Jan 20, 2021 · 1 comment

Comments

@wonder-sk
Copy link
Contributor

Trying to load a file from Helsinki dataset:
https://kartta.hel.fi/helshares/Laserkeilausaineistot/Pintamalli/2017_LAZ/rgb_673496c.laz
(~72 MB)

Untwine fails with the following error:

writers.las: Unable to convert scaled value (2549659868) to int32 for dimension 'X' when writing LAS/LAZ file /home/martin/tmp/las/fi-helsinki/ept_rgb_673496c/ept-data/4-2-2-2.laz.

The source metadata say:

    "minx":     25496500,
    "maxx":     25497000,
    "offset_x": 25000000,
    "scale_x":  0.001,

Is this the same issue as #28 ?

@abellgithub
Copy link
Collaborator

Fixed with 2a5970b

wonder-sk added a commit to wonder-sk/QGIS that referenced this issue Jan 27, 2021
Offset and scale of X/Y/Z dimensions were not written and
some datasets would simply fail to get indexed completely.
Other datasets may have had the data slightly misaligned
after indexing.

References:
hobuinc/untwine#28
hobuinc/untwine#46
nyalldawson pushed a commit to qgis/QGIS that referenced this issue Jan 28, 2021
Offset and scale of X/Y/Z dimensions were not written and
some datasets would simply fail to get indexed completely.
Other datasets may have had the data slightly misaligned
after indexing.

References:
hobuinc/untwine#28
hobuinc/untwine#46
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