Skip to main content
Question

extract first and last measure from a polyline

  • September 18, 2019
  • 1 reply
  • 52 views

nicholas
Contributor
Forum|alt.badge.img+14

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>

 

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.

1 reply

takashi
Celebrity
  • 7843 replies
  • September 18, 2019

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".