Question

extract first and last measure from a polyline

  • 18 September 2019
  • 1 reply
  • 4 views

Badge +10

Hello,

I have six polyline features, where each node of the polyline has a measure

(I used MeasureSetter earlier in the workbench)

I want to create two new attributes "MIN" and "MAX" where;

MIN = the measure value of the first node in the polyline

MAX = the measure value of the last node in the polyline

I think I need to use the MeasureExtractor to do this? But I cannot get it to work

I tried Type: Individual Vertex by Index, with Index: 0 but the result was <missing>

 


1 reply

Userlevel 2
Badge +17

Hi @nicholas, the MeasureExtractor (Type: Individual Vertex by Index) should work to do that.

Make sure that the geometry definitely has measure, and set measure name to the Source Measure Name parameter in the MeasureExtractor if the measure has a specific name.

You can see measure name(s) and values with Feature Information window of FME Data Inspector. For example, the geometry shown in this screenshot has two measures, one has no name (<default_measure> indicates no name), another has name "my_measure".

Reply