Skip to main content
Question

FME Feature function - Line coordinates


Forum|alt.badge.img

Hi,

i have ca. 13000 lines (always two vertex) and i need to write the coordinates into an attribute.

I know i can use the Feature Function @XValue and @YValue and the list value 0 for the first point and 1 for the last point but I cannot find the right syntax...can someone make an example for me please?

Like....

@XValue(<0>) ?

@Xvalue().0?

Thank you,

Davide

3 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • April 17, 2020

I'd just use two coordinate extractors for this scenario


Forum|alt.badge.img
ebygomm wrote:

I'd just use two coordinate extractors for this scenario

Ohhh...ok that should do the trick. I'm just really upset at myself cause i know there is a way to define the coordinate index in the @XValue f.e. in the AttributeManager but I can't remember how to do it...

Thanks


ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • April 17, 2020
davidealbertini wrote:

Ohhh...ok that should do the trick. I'm just really upset at myself cause i know there is a way to define the coordinate index in the @XValue f.e. in the AttributeManager but I can't remember how to do it...

Thanks

The help doesn't indicate this is possible

"When used as an attribute value function, @XValue returns the value of the first x coordinate of the feature."

The feature function @Xvalue does something slightly different.

Perhaps you were thinking of this syntax (*Needs to be in the arithmetic editor not text editor). @Coordinate doesn't appear in the list of functions anymore but it still works


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