Skip to main content
Question

Limit decimal places of feature coordinates


vki
Contributor
Forum|alt.badge.img+7
  • Contributor

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

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • March 16, 2017

david_r
Celebrity
  • March 16, 2017
pratap wrote:
Can confirm that the CoordinateRounder just before the ili2fme writer will do the trick.

 

 


vki
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 20, 2017

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

Thanks.


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