Skip to main content
Question

Line Joining Issue

  • December 19, 2016
  • 3 replies
  • 11 views

Hi all,

I have a network of lines that have been grouped in aggregates and I have to insert the aggregates into a PointOnLineOverlayer to split only along specific points.

If I input the aggregates directly into PointOnLineOverlayer, the output splits the aggregates into individual lines (not just along where the input points are). I don't want that. So I joined the aggregate lines using LineJoiner. LineJoiner splits lines where there is a 3-way connection. Any way to prevent that? (Please see image below)

The desired result is the middle one in the image but joined properly so that they are two line networks.

I have attached what a bit of my code looks like around the LineJoiner and Aggregator.

This question is kind of a continuation from my previous question

PreviousQuestion

I thought I would ask a new one as not to clutter that one.

Any suggestion will be greatly appreciated. Thanks!

3 replies

david_r
Evangelist
  • December 19, 2016

Polylines must have contiguous vertices, so they cannot have 3-way intersections.

A better strategy might be to split your lines using the points at the very beginning, before using the LineJoiner, Aggregator, etc.


david_r wrote:

Polylines must have contiguous vertices, so they cannot have 3-way intersections.

A better strategy might be to split your lines using the points at the very beginning, before using the LineJoiner, Aggregator, etc.

When it comes to power distribution networks... there are many connections that are 3 way or more. I have to segment them based on the Phase they are in (which I did with the Aggregate). Then I have to split them based on switches (points that are open or closed). That's where the PointOnLineOverlayer comes to use. If I can aggregate lines that are not connected end to end and have 3-way connections, I am confused why the aggregates don't hold for later transformers. Any suggestions?

 

 


david_r
Evangelist
  • December 19, 2016
fariyafarhad wrote:
When it comes to power distribution networks... there are many connections that are 3 way or more. I have to segment them based on the Phase they are in (which I did with the Aggregate). Then I have to split them based on switches (points that are open or closed). That's where the PointOnLineOverlayer comes to use. If I can aggregate lines that are not connected end to end and have 3-way connections, I am confused why the aggregates don't hold for later transformers. Any suggestions?

 

 

There are quite a few transformers that have secondary effects on certain geometries, e.g. breaking up aggregates and stroking arcs, among other things. I cannot say why that is in your particular case, but at least the documentation is (slowly) getting better in this regards.

 

If you think that this is undocumented behavior, I'd recommend opening a Safe support case: https://support.safe.com/knowledgeSubmitCase

Reply


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