Skip to main content

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.

PointCloudExpression evaluator?

(Round(Value*100)/100

Or use tcl format in the expression evaluator.


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.


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


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.

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

i wish you a nice weekend !

Greetings Kai


Reply