Skip to main content

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.

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


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.


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?


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)


Reply