Question

Limit decimal places of feature coordinates

  • 16 March 2017
  • 3 replies
  • 9 views

Badge +6
  • Contributor
  • 53 replies

I use the swiss ili2fme-writer to write to an xml-like output-format. In the outputfile, the coordinates have 9 or 10 decimal places, but just 3 are allowed in the further processing.

Is there a way to limit the decimal places of the coordinates in FME (the ili2fme-writer obviously just writes what it gets...)

I found this issue:

https://knowledge.safe.com/questions/38634/coordinateconcatenator-attribute-string-limit-deci.html but it's about coordinates as an attribute.

or this:

https://knowledge.safe.com/idea/19776/add-parameters-to-control-decimal-places-to-geomet.html > is this idea already realized?


3 replies

Badge +2

Have you tried CoordinateRounder

http://www.safe.com/transformers/coordinate-rounder/

Userlevel 4
Can confirm that the CoordinateRounder just before the ili2fme writer will do the trick.

 

 

Badge +6

oops, sorry, I should have seen this....

Thanks.

Reply