Skip to main content
Question

LineOnLine Overlayer - keep lines that don't overlap

  • October 17, 2018
  • 6 replies
  • 118 views

Hello,

I was recently working with LineOnLine Overlayer transformer and I encountered some problems. I have two line datasets and I would like to find the lines in one dataset that overlap with lines in the other dataset, but also get the lines that do not overlap. I was able to output the overlapping lines, but I couldn't find a way to also keep the lines that do not overlap. Is there a possibility to get the lines that do not overlap with LineOnLineOverlayer, or do I have to use a buffer and the LineOnAreaOverlayer?

Thanks in advance :)

Kathrin

6 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Could you clarify where you are looking for:

 

- Exact identical segments of lines in two different datasets.

 

- Locations where lines from one set crosses lines from the other set.

For exact identical segments:

 

- Break down lines to segments of two vertices using a Chopper. (2 vertices)

 

- Check if there are duplicates in within each set using a Matcher.

 

- Check if there are duplicates between the two dataset using a Matcher.

 

(Use Lenient Geometry Matching if direction doesn't count as different.

nielsgerrits wrote:

Could you clarify where you are looking for:

 

- Exact identical segments of lines in two different datasets.

 

- Locations where lines from one set crosses lines from the other set.

For exact identical segments:

 

- Break down lines to segments of two vertices using a Chopper. (2 vertices)

 

- Check if there are duplicates in within each set using a Matcher.

 

- Check if there are duplicates between the two dataset using a Matcher.

 

(Use Lenient Geometry Matching if direction doesn't count as different.
I have two different datasets and I would like to shift a line from one dataset to the other dataset and cut the underlying line with the line above. Like in the example below, the orange line should be shifted to the blue line and the blue line should get cutted by the orange line.

 

I already used a neighbour finder to always find the closest line and then I wanted to use the LineOnLineOverlayer to cut those lines..

 

 


fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • October 19, 2018

Hi @kathrinkarer I've created a demo at https://hub.safe.com/templates/overlapping_lines which shows how to count the number of overlaps between one dataset and the other.


takashi
Supporter
  • October 20, 2018

Hi @kathrinkarer, if the goal is to split a line (blue) at the end nodes of a neighbor line (orange), this workflow might help you. Assuming that the lines are approximately parallel.


takashi wrote:

Hi @kathrinkarer, if the goal is to split a line (blue) at the end nodes of a neighbor line (orange), this workflow might help you. Assuming that the lines are approximately parallel.

hey @takashi,

 

 

thanks for your answer. I tried to produce your workbench, but i already failed at the start, because i couldn't find the vertexremover transformer. I am still using FME 2017, is the vertexremover a new transformer in FME 2018? If yes, is there a way how to do it with FME 2017?

 


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • October 23, 2018
kathrinkarer wrote:
hey @takashi,

 

 

thanks for your answer. I tried to produce your workbench, but i already failed at the start, because i couldn't find the vertexremover transformer. I am still using FME 2017, is the vertexremover a new transformer in FME 2018? If yes, is there a way how to do it with FME 2017?

 

The vertex remover was called the coordinate remover in earlier versions

 

 


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