Closed kylemann16 closed 3 weeks ago
logs:
Just the reader:
ReturnNumber uint8
NumberOfReturns uint8
dtype: object
With assign filters:
ReturnNumber float64
NumberOfReturns float64
dtype: object
This is a bug in the base PDAL code. I'll try to fix tomorrow.
What's happening: PDAL python library seems to be adjusting data types when using
filters.assign
. In the example below,NumberOfReturns
andReturnNumber
are both changed fromuint8
tofloat64
after being manipulated byfilters.assign
What's expected: Datatypes shouldn't change unless explicitly stated somewhere.
I haven't looked into this too much so far, so I'm not sure how deep this goes. I tried adding a
writers.copc
stage at the end and did apdal info
from there and data types were as expected (uint8
), but it's possible that PDAL is manipulating these dimensions and then casting them back when writing out.Minimal Example: