Skip to main content
Question

Join records with Line geometry

  • August 20, 2025
  • 3 replies
  • 63 views

syedh2993
Contributor
Forum|alt.badge.img+7

Hi All,

I am working on data with Line Geometry and would require some help to solve the below scenario,


While plotting them on map, I see there is small gap between lines in some scenarios and would like to join them together if the distance between two lines is less.

(Reason for this gap - There is an asset in between the lines which has Point geometry.- Not sure if this statement will help, JFYI)

Below is an example of different line geometries joining with each other, and there are small gap in some scenarios

I would like to join

  1.  gap between Line 3 and Line 4.
  1. gap between Line 5 and Line 6

I am not interested in joining parallel line, as they are far from each other


Any help regarding the above would be much appreciated.

 

Thanks

3 replies

lambertus
Enthusiast
Forum|alt.badge.img+23
  • Enthusiast
  • August 20, 2025

Hi ​@syedh2993, how about a AnchoredSnapper combined with a LineCombiner?

First one snaps the lines together, 2nd merges adjacent lines into single lines.


syedh2993
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • August 25, 2025

Hi ​@lambertus : Thank you so much for your response.

 

In my case, I only have 1 file with all the data. I see “AnchoredSnapper” requires 2 inputs

 

and I think I missed adding few more sentences, I have updated my question. 

 

I would like to join

  1.  small gap between Line 3 and Line 4.
  1. small gap between Line 5 and Line 6

I am not interested in joining parallel line, as they are far from each other.

 

Thanks

 

 


lambertus
Enthusiast
Forum|alt.badge.img+23
  • Enthusiast
  • August 25, 2025

@syedh2993 thanks for your update. Could you share a dataset I can play around with in order to build a suitable workflow for you?