Skip to main content
Question

Adding Decimal to X,Y

  • August 18, 2014
  • 4 replies
  • 69 views

Forum|alt.badge.img
I have recieved some XY Data that does not seem to be correct as there are 7 digits for my X coordinate and 9 digits for my Y.  I would like to add a decimal after the 6 digit for the X and at the 7th digit for my Y.  

 

 

Thoughts?

 

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Celebrity
  • August 18, 2014
Hi,

 

I would multiply X by 0.1 and Y by 0.01, using AttributeCreator or ExpressionEvaluator.

 

Takashi

david_r
Celebrity
  • August 19, 2014
Hi,

 

 

also remember that you can freely treat your numbers as strings in FME, so you can also use the StringConcatenator, etc to add digits at the end or the SubstringExtrator to split up any digit for further manipulation.

 

 

David

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • August 19, 2014
The Scaler transformer allows you to scale X, Y and Z values by multiplying the ordinates.

 

 

Kind regards,

 

Erik Jan Bodewitz

 

Vicrea

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • August 19, 2014
Hi,

 

 

you could just use claculations:  number + digit*pow(10,POSITION)

 

 

Maybe it is more comfortable use string operations:LEFT (NUMBER,7)&DIGIT&RIGHT(NUMBER,2)

 

Or u can split the number with no delimmiter and use list operations on it.