Skip to main content
Question

Distance between lines

  • October 12, 2017
  • 2 replies
  • 9 views

Forum|alt.badge.img

Hi,

I have 2 lines and I need draw some kind of mark between them when that lines are 100 meters or less close to each other

Any help?

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.

2 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • October 12, 2017

I would try the following:

Replace the lines by point (Chopper, vertexes = 1), possibly after using a Densifier to create more points on the line (you might want to lay with the number of points per line).

Then use the NeighborFinder to find the closest point on the other line (feed one to base and the other to Candidate). This will add the attribute _distance.

You can then use the Tester to find all points that are closer than 100 meters from a point on the other line.

Hope this helps.


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • 629 replies
  • October 12, 2017

@emorecas I would probably feed both lines into a GeographicBufferer set to 50m. From there use an AreaonAreaOverlayer to find where the areas overlap. You can use a TestFilter after the AreaonAreaOverlayer to test for areas where _overlay = 2.

Taking it a step further based on your other question - You can isolate those areas that are not associated with road intersections by using the Intersector and Spatial Filter.