Skip to main content
Solved

Find overlapping segments of two MultiCurves


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

View original
Did this help you find an answer to your question?

2 replies

Forum|alt.badge.img+2

@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
  • 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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings