Skip to main content
Question

How to add measures to a line using another line/route with measures?

  • February 14, 2019
  • 9 replies
  • 83 views

Forum|alt.badge.img

I want to use LineOnLineOverlayer similar to how PointOnLineOverlayer works, to overlay two line feature classes (one that has measures) and extract measures to the other line feature class. These are features from an LRS db so they should be coincident and intersect exactly. However, I'm getting unexpected results and am unable to extract measures once the LineOnLineOverlayer has run.

Is there a better way to do this?

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.

9 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 14, 2019

Do the features match exactly, or are colinear with different start/end points?

If they match exactly, you can use a MeasureExtractor to extract the measure for the whole line as a list, use a spatialrelator to find lines that are equal to each other and transfer the list by merging attributes, then a measure setter to add the measure to the line.


Forum|alt.badge.img
  • Author
  • 4 replies
  • February 14, 2019

Thanks for your response @egomm! They are colinear with different start/end points. The base feature class with the measures acts as the routes, and the other event feature class with linear attributes in general has smaller segments with different start and end points. In the attached image I'm looking to apply the measures from the "Line with Measure" to the start/end points to the colinear segments intersecting it.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 14, 2019

Thanks for your response @egomm! They are colinear with different start/end points. The base feature class with the measures acts as the routes, and the other event feature class with linear attributes in general has smaller segments with different start and end points. In the attached image I'm looking to apply the measures from the "Line with Measure" to the start/end points to the colinear segments intersecting it.

I've just checked and the line on line overlayer should produce an output where the line is broken into segments and each has measures. If you set separate collinear segements to yes however, you won't get the output you want.

I suspect you need to carefully manage what attributes are merged/dropped to get the output you want.


Forum|alt.badge.img
  • Author
  • 4 replies
  • February 14, 2019

I've just checked and the line on line overlayer should produce an output where the line is broken into segments and each has measures. If you set separate collinear segements to yes however, you won't get the output you want.

I suspect you need to carefully manage what attributes are merged/dropped to get the output you want.

How do I extract the measures? When I check the result in Arc after running the LineOnLine Overlayer (FME 2016), the results don't have measures associated with them unfortunately. I tried using the Measure Extractor to extract at Individual Vertex by Index, Index=0, and Index = -1, and the job fails when it reaches the Measure Extractor transformer.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 14, 2019

How do I extract the measures? When I check the result in Arc after running the LineOnLine Overlayer (FME 2016), the results don't have measures associated with them unfortunately. I tried using the Measure Extractor to extract at Individual Vertex by Index, Index=0, and Index = -1, and the job fails when it reaches the Measure Extractor transformer.

It may be that the functionality isn't quite the same in FME2016?

After the LineOnLine Overlayer are you getting the correct segments reporting an overlap of 2?


Forum|alt.badge.img
  • Author
  • 4 replies
  • February 14, 2019

It may be that the functionality isn't quite the same in FME2016?

After the LineOnLine Overlayer are you getting the correct segments reporting an overlap of 2?

Ah, so I'm only getting Overlaps = 1 for all the features.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • February 14, 2019

Ah, so I'm only getting Overlaps = 1 for all the features.

I think probably the lack of tolerance in 2016 lineonlineoverlayer means you are not finding the overlapping segments which is why you don't see the measures transferred

Forum|alt.badge.img
  • Author
  • 4 replies
  • February 15, 2019
I think probably the lack of tolerance in 2016 lineonlineoverlayer means you are not finding the overlapping segments which is why you don't see the measures transferred

Yep, that is it. Upgraded to 2018 and it works. Thanks!


takashi
Celebrity
  • 7843 replies
  • February 16, 2019

You can use the PointOnLineOverlayer to transfer measure from a line to points on it.

A possible way is to decompose the collinear segments into individual vertex points, set measure to them with the PointOnLineOverlayer, and restore the original segments with the PointConnector.