Get original XYZ coordinates of input pointcloud #338
-
Hi - I am trying to read in a pointcloud that is using state plane coordinates with XYZ values around 351000, 1621000, 1300. After reading the file, cloud = PyntCloud.from_file(las)
points = cloud.points
x_offset = cloud.las_header.x_offset
y_offset = cloud.las_header.y_offset
z_offset = cloud.las_header.z_offset
points["x_world"] = points.x + x_offset
points["y_world"] = points.x + y_offset
points["z_world"] = points.x + z_offset
points.head() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I noticed my issue was actually that for each "world" column I was adding |
Beta Was this translation helpful? Give feedback.
I noticed my issue was actually that for each "world" column I was adding
points.x
to the offset instead of the correct points value. Things are working fine now. I would just have deleted the discussion but I can't seem to.