Skip to main content
Solved

Measure distance between two lines at specific interval

  • February 17, 2017
  • 4 replies
  • 127 views

ingalla
Contributor
Forum|alt.badge.img+10

Hi all

I have the edges of a road and want to be able to measure the distance between the two edges perpendicular to the left hand edge at a distance every 10 metres.

Any suggestions on how to complete this as I can not get my head around it.

Thanks in advance.

Best answer by jeroenstiers

Hi @ingalla

I would suggest to use the IterativeSnipper to generate a point every X distance for both lines and then use the NeighborFinder to find the closest point of the other line. The NeighborFinder also returns the distance to this point.

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

4 replies

Forum|alt.badge.img+7
  • Best Answer
  • February 17, 2017

Hi @ingalla

I would suggest to use the IterativeSnipper to generate a point every X distance for both lines and then use the NeighborFinder to find the closest point of the other line. The NeighborFinder also returns the distance to this point.


david_r
Celebrity
  • February 17, 2017

I agree with @jeroenstiers. I'll just add that if you have a common ID on both road edges, I'd recommend using those as a Group By for the NeighborFinder. This will avoid a lot of problems in e.g. intersections.


david_r
Celebrity
  • February 17, 2017
jeroenstiers wrote:

Hi @ingalla

I would suggest to use the IterativeSnipper to generate a point every X distance for both lines and then use the NeighborFinder to find the closest point of the other line. The NeighborFinder also returns the distance to this point.

Agreed. I'll just add that if you have a common ID on both road edges, I'd recommend using those as a Group By for the NeighborFinder. This will avoid a lot of problems in e.g. intersections.

 


ingalla
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • February 17, 2017
jeroenstiers wrote:

Hi @ingalla

I would suggest to use the IterativeSnipper to generate a point every X distance for both lines and then use the NeighborFinder to find the closest point of the other line. The NeighborFinder also returns the distance to this point.

Thanks all for your comments / advice

 

 


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