Skip to main content
Question

LineOnLine Overlayer - keep lines that don't overlap

  • October 17, 2018
  • 6 replies
  • 150 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

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.

6 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2940 replies
  • October 17, 2018

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.

  • Author
  • 4 replies
  • October 17, 2018

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
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • 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
Celebrity
  • 7843 replies
  • 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.


  • Author
  • 4 replies
  • October 23, 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.

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+44
  • Influencer
  • 3429 replies
  • October 23, 2018
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