Skip to main content
Open

Point cloud writer support precision control

Related products:Integrations
  • May 17, 2017
  • 4 replies
  • 85 views

Forum|alt.badge.img

FME need to be able to set precision control when writing point cloud data (xyz).

Without precision control:

435263.4 6036064.7 15.08
435263.6 6036064.7 15.08
435263.2 6036064.9 15.08
435263.4 6036064.9 15.08
435263.6 6036064.9 15.08
435263 6036065.1 15.08
435263.2 6036065.1 15.08

Using precision control with 2 decimals:

435263.40 6036064.70 15.08
435263.60 6036064.70 15.08
435263.20 6036064.90 15.08
435263.40 6036064.90 15.08
435263.60 6036064.90 15.08
435263.00 6036065.10 15.08
435263.20 6036065.10 15.08

Since the point cloud writer is converting numeric values to string, one way to achivie this would be to control number of characters for X Y and Z.

For example, easting value would be 6 integers followed be 2 decimals and 1 decimal point would correspond to 9 characters. So one string statement could be; If less than 2 then RightPad else leave as is..

Best regards

André

4 replies

andrewstanley21

Clients I work with often request pointclouds that contain a certain precision value. This is a great idea and exactly what i would need when outputting pointclouds! . It also looks neat and tidy which i think helps! Great suggestion.


This is still relevant and needed! There shouldn't be a need for calling a python script to make this happen.


Forum|alt.badge.img
  • Author
  • September 30, 2020

@anderssoneric, fully agree!


stevenjh
Contributor
Forum|alt.badge.img+5
  • Contributor
  • May 11, 2022

This is also an issue when it comes to reprojection and compression, excess precision is introduced which impacts the effectiveness of the LAZ compression.