Skip to main content
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?

 

 

 

Hi,

 

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

 

Takashi
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
The Scaler transformer allows you to scale X, Y and Z values by multiplying the ordinates.

 

 

Kind regards,

 

Erik Jan Bodewitz

 

Vicrea
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.

 

 

Reply