Skip to main content
Question

FME Feature function - Line coordinates

  • April 17, 2020
  • 3 replies
  • 66 views

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

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.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • April 17, 2020

I'd just use two coordinate extractors for this scenario


Forum|alt.badge.img

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+44
  • Influencer
  • 3427 replies
  • April 17, 2020

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