Skip to main content

Hi, I have 2 sets of data one line and one point set. I have snapped the point set to my lines and aggregated them by their highway name. I need to remove the first and last point that falls on each highway. Unfortunately, this is where I come up short on ideas. I have tried using a Neighbor finder and snapping the last points to their closest neighbor, but as my road data overlaps, this causes an issue of points snapping to points on other roads.

 

Small example of what I need to get rid off. 

Any recommendations would be appreciated.

The Snipper would be best suited here with Snipping Mode set to Vertex , along with starting vertex of 1, and ending vertex of -2.image


The Snipper would be best suited here with Snipping Mode set to Vertex , along with starting vertex of 1, and ending vertex of -2.image

This seems to work snipping the line on the end points, which I can just get rid off using a PointOnLine overlay and Tester, but I see that the clipper is also clipping the inner part of my highway (in red). Any idea why this is happening?

 

Red cross is where line should still continue


This seems to work snipping the line on the end points, which I can just get rid off using a PointOnLine overlay and Tester, but I see that the clipper is also clipping the inner part of my highway (in red). Any idea why this is happening?

 

Red cross is where line should still continue

That would mean your lines are not joined, or possibly the lines may have been an aggregation. I would suggest experimenting with the LineJoiner and Deaggregator prior to the Snipper.


Try using a LineCombiner instead of an aggregator here - The issue is that the Snipper is treating your segments individually rather that a hole

 

image


Try using a LineCombiner instead of an aggregator here - The issue is that the Snipper is treating your segments individually rather that a hole

 

image

The LineCombiner works perfectly if I use it with my original line data, however it seems to still cuts my lines as soon as I use lines created from a OffsetCurveGenerator. Any idea why this is happening?

Correct output with original line data 

Offset curve output


The LineCombiner works perfectly if I use it with my original line data, however it seems to still cuts my lines as soon as I use lines created from a OffsetCurveGenerator. Any idea why this is happening?

Correct output with original line data 

Offset curve output

Your lines are probably not topologically connected after the OffsetCurveGenerator. I would suggest putting the LineCombiner before the OffsetCurveGenerator.


Reply