Solved

Find overlapping segments of two MultiCurves


Badge +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 :)

icon

Best answer by mickael 15 April 2021, 17:03

View original

2 replies

Badge +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.

Badge +1

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

Reply