Skip to main content
Solved

Linear referencing. I am trying to assign measures to a line segment.

  • March 2, 2023
  • 4 replies
  • 126 views

keller
Contributor
Forum|alt.badge.img+7

Hello fme team,

I have a line of length 100M, When i load to fme the defualt measure is 0-100, the real measure position of the line is start = 15.0 and end = 16.0, the line has attribute columns start and end in the attribute table.

 

Any idea how i can assign the start and end as measure values instead of the default measure 0-100?

 

regards,

Keller.

Best answer by ebygomm

You can use a couple of measure setters, use Individual Vertex by Index, then measure value set to start attribute and index of 0 and measure value set to end attribute and index -1

image

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

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • Best Answer
  • March 2, 2023

You can use a couple of measure setters, use Individual Vertex by Index, then measure value set to start attribute and index of 0 and measure value set to end attribute and index -1

image


keller
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • 18 replies
  • March 2, 2023

Hello @ebygomm​ , many thanks for the answer, i was just wondering, if you have a short line segment from the same line, say from 15.3 - 15.6, from an excel sheet without geometry, i tried a feature merger and a snipper but i am not able to get a cut of the segment, otherwise thanks in advance.

Keller.


keller
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • 18 replies
  • March 2, 2023

I also realised the MeasureSetter, only sets measures for coordinate 0 and coordinate -1, in between is nan, could this be the reason why i am not able to cut out a segment from the main line?


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • March 2, 2023

I also realised the MeasureSetter, only sets measures for coordinate 0 and coordinate -1, in between is nan, could this be the reason why i am not able to cut out a segment from the main line?

If you have multiple vertices then maybe it's better to try and generate a measure like this?

image(Disclaimer: i've no idea how well this would work with real data)