Skip to main content
Solved

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


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

View original
Did this help you find an answer to your question?

4 replies

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • 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
  • 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
  • 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+38
  • Influencer
  • March 2, 2023
keller wrote:

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)


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