Closed CharlesGaydon closed 2 years ago
I disguised a LAS as a text file for github. Simply remove the .txt
extension.
I can't replicate this
pdal translate ../ign-auto-scale.las foo.copc.laz --writers.copc.scale_x="auto" --writers.copc.forward="all"
"minx": 730604.98,
"miny": 6359619.74,
"minz": 466.67,
"offset_x": 730607.845,
"offset_y": 6359620,
"offset_z": 466.67,
print(points["X"].min()) # high value, not 0
Maybe there is some confusion on what auto
does for scale. It is computing the minimum value in the set, which in this case is 730604.98
. The default value is 0
, and isn't what you want in most cases. I do not think there is a bug here.
Ok, indeed there was some misunderstanding on my side. I though auto
would first compute the minimum value and then substract it from the positions. Thank you.
I have an issue with the pdal.Writer.copc options offset_{x|y|z}, which have no effect when set to "auto".
Anaconda env:
Versions are
Minimal working example
I can provide the tiny data subset provided a suitable channel (it is only 24kb).
(BTW: I am highly happy that COPC is supported by PDAL!)