Skip to main content
Solved

LRS Basics - Create route from a line with start and end measures as attributes

  • March 20, 2026
  • 10 replies
  • 79 views

asellars_hdr
Contributor
Forum|alt.badge.img+3

I am not sure why I am struggling with this one… I have tried quite a few options.  

What I would like to do is:

  1. Pull Alignment file from an XML (this has the starting value as an attribute, end value can be calculated by start value + line length)
  2. Set Start and End Measures
  3. Kick out an m-enabled polyline that is geometrically calibrated

I have the workbench set up to pull this in, using a geometry coercer to make sure it is a line, then I have been trying the measure generator and measure setters to get these values to stick with no luck. 

 


 

 

Best answer by asellars_hdr

Dan, 

I was able to get this figured out.  It was not the writer but how FME is handling the “attribute” <default measure> or </default measure/>.  There is a lot of documentation that points to calling the measure out as this but the only way the M values would write all the way is by keeping this set to blank. 

Thanks! 

10 replies

DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • March 20, 2026

Hi ​@asellars_hdr The MeasureGenerator and MeasureSetter apply measures to every coordinate of the line (geometry).  If you give the measures a name then you can have multiple measures on a single line.  Use a MeasureExtractor to convert the measures to attributes.


asellars_hdr
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 20, 2026

Thank you for the reply Dan.  I am not sure if I follow.  The line currently has no measures associated with it to be extracted.  What I have is a line (made up of several paths) and then I have a start value and end value.  I need to get these measures associated with the starting and ending vertices and then calibrate the line geometriclly between.  

Think of this operation in ArcGIS Pro using the Create Routes gp tool.  You give it a line, a start measure, and an end measure, and it spits out a polyline that has a measure associated with each vertex. 


DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • March 20, 2026
Do you see the measures in the Record Information window?

 


asellars_hdr
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 23, 2026

Dan, 

It looks like I am getting the measures in the coordinates (line starts at 108000). They show as 0 and then have the measeure that is desitred in brackets <>.  Do I now use the measure extractor to assign them as M values to bring into GIS? 
 

 


DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • March 23, 2026

The 0’s are z-values.  The MeasureExtractor will create an attribute list of the measures for each feature, which you might need to reformat (e.g. ListConcatenator) to format the measures acceptable to your GIS.


asellars_hdr
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 24, 2026

Got it, I am still struggling with how these get attached as m-values to a polyline.  Does the entire line need to be broken down into points and then have the measures attached to them? How do you get them to the correct format for an m-enabled polyline? I can see the list that get’s kicked out but I am not grasping how to get this into the correct format. 


DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • March 24, 2026

@asellars_hdr Which format are you writing to?


asellars_hdr
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 24, 2026

FGDB, Polyline, M-Enabled.  Tested with the ‘GEODATABASE FILE’ writer and made sure that Contains Measures is = Yes. The line it generates in GIS has NaN listed for all M-values. 

 


DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • March 24, 2026

Do you have ‘Contains Measures’ set to ‘Yes’ on the GEODATABASE_FILE feature type?  I see the measures in ArcGIS Pro:

 


asellars_hdr
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • Best Answer
  • March 24, 2026

Dan, 

I was able to get this figured out.  It was not the writer but how FME is handling the “attribute” <default measure> or </default measure/>.  There is a lot of documentation that points to calling the measure out as this but the only way the M values would write all the way is by keeping this set to blank. 

Thanks!