Skip to main content
Question

How to add decimal to a Pointcloud


Forum|alt.badge.img

Hello,

i have to thin out a few Pointcloud files. I tried with PointCloudThinner, and it works fine. But i have problems with the decimals. In the original File are all Coordinats with two decimals ,but in the edited file some coordinates have only one decimal. How it add a zero to the coordinate, i tried it with round, and format, but it dosent work.

5 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 30, 2017

PointCloudExpression evaluator?

(Round(Value*100)/100

Or use tcl format in the expression evaluator.


takashi
Influencer
  • June 2, 2017

Hi @florena1, if you intend to save the point cloud feature with the Point Cloud XYZ format, a possible way I can think of is to write x, y, z (and other components if necessary) with the CSV writer after formatting the coordinates for every individual point. e.g.


Forum|alt.badge.img
  • Author
  • June 2, 2017

Thank you both for your answers. It works fine takashi !

I have a last question, its about the syntax, at the x coordinats the leading "23" is missing. For example this ist the original coordiante 369001,16 but is has to be 23369001,16. Is it possible to add die "23" in the CSV-Writer to every x coordinate, and how i write it correct.

Again thank you for your answers. !

Greetings Kai


takashi
Influencer
  • June 2, 2017
florena1 wrote:

Thank you both for your answers. It works fine takashi !

I have a last question, its about the syntax, at the x coordinats the leading "23" is missing. For example this ist the original coordiante 369001,16 but is has to be 23369001,16. Is it possible to add die "23" in the CSV-Writer to every x coordinate, and how i write it correct.

Again thank you for your answers. !

Greetings Kai

Three possible ways:

 

  • Insert an Offsetter (X Offset: 23000000, Y Offset: 0, Z Offset: 0) before the CoordnateExtractor.
  • or, add 23000000 to the x attribute with a transformer such as ExpressionEvaluator after the CoordinateExtractor.
  • or, concatenate "23" and the x value as string with a transformer such as StringConcatenator after the CoordinateExtractor.

Forum|alt.badge.img
  • Author
  • June 2, 2017

I do it with the Offsetter, thank you very much takashi !

i wish you a nice weekend !

Greetings Kai


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings