Skip to main content
Solved

Removing first and last point data from al line.


ivanvdn94
Contributor
Forum|alt.badge.img+2

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.

Best answer by dustin

ivanvdn94 wrote:

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.

View original
Did this help you find an answer to your question?

6 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • November 17, 2023

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


ivanvdn94
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • November 17, 2023
dustin wrote:

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


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • November 17, 2023
ivanvdn94 wrote:

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.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35

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


ivanvdn94
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • November 17, 2023
virtualcitymatt wrote:

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


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • November 17, 2023
ivanvdn94 wrote:

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.


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