Skip to main content
Solved

Removing first and last point data from al line.

  • November 17, 2023
  • 6 replies
  • 85 views

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

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.

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

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

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

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+47

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

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

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.