Skip to main content
Solved

Find overlapping segments of two MultiCurves

  • April 13, 2021
  • 2 replies
  • 14 views

mickael
Forum|alt.badge.img+1

Hello,

 

I have two geojson files, available [here] (until the 21/04/2021). Each one contains a MultiLineString feature, converted to IFMEMultiCurves with FME. I would like to be able to detect any overlapping segment, with some tolerance, no matter their directions, and set a property to any overlapping (or "close-enough") segment from one dataset with any segment from the other dataset.

I have tried various transfomers, but I am not able to detect overlapping segments, nor to break my datasets into segments ...

 

Any advice about how to do this ?

 

Thanks in advance :)

Best answer by mickael

Thanks @Mark Stoakes​ I eventually figured this out, using :

Chopper (Mode "By Vertex + Maximum Segments = 2) > CommonSegmentFinder > LineCombiner > Attribute Manager

I have not tried the Matcher for 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.

2 replies

Forum|alt.badge.img+2
  • 1891 replies
  • April 14, 2021

@mickael​ Thanks very much for including the sample dataset.

I think if you use Chopper to break all your lines into two point line segments, the Matcher will pickup the duplicates.


mickael
Forum|alt.badge.img+1
  • Author
  • 8 replies
  • Best Answer
  • April 15, 2021

Thanks @Mark Stoakes​ I eventually figured this out, using :

Chopper (Mode "By Vertex + Maximum Segments = 2) > CommonSegmentFinder > LineCombiner > Attribute Manager

I have not tried the Matcher for this