Open Nathipha opened 1 month ago
getX()
, getY()
and getZ()
return the raw value from the point data record. This value may be different from the actual value in the coordinate system, because the LAS header contains scale factors and offsets for each dimension.
See e.g. LASReaderTest.insideRectangle() for an example where coordinates seem to be off by a factor of 100, which is caused by the scale factor in the header.
Can you share the laz file that causes the NullPointerException
?
I'm looking for all points within a certain rectangle with the following Java 8 code:
There are more than 1000 points and this prints:
Why are they negative numbers and how do I get access to the actual coordinates (x should be something like 641200)?
p.getXt()
also throws aNullPointerException
, even though at least the x and y coordinates in the .laz files should be doubles (z is probably stored as float).