Skip to main content
Solved

calculate Perpendicular distance between road centerline to property polygon

  • August 2, 2022
  • 10 replies
  • 185 views

f.kemminje
Contributor
Forum|alt.badge.img+11

I have a road center line and private properties beside(left and right) to road center line.

I want to find out the distance between the road centerline and private properties (perpendicular to the road centerline)

both the sides(left and right) for every kilometer.

 

  • Generate points along the road centerline for each kilometer
  • Calculate perpendicular distance from a point to private property polygons(left and right)tosafe_pri
  • Add attribute left1=min distance (left property polygon and right1=min distance to private property right side

Best answer by nielsgerrits

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

I still think you should do it the other way around, using buildings as Bases and centerlines as Candidates.

 

But if you want to do it this way you can generate the interval you need using a densifier and a chopper. Then create perpendicular lines using the 2DVectorCalculator from the Hub. Then clip away the parts you do not need using the buildings and keep the parts touching the centerline.2022-08-02_15h25_37

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.

10 replies

nielsgerrits
VIP
Forum|alt.badge.img+62

One way to do this is to use the NeighborFinder. Chop the property area's to points and find the two closest points to the centerline.


f.kemminje
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • August 2, 2022

One way to do this is to use the NeighborFinder. Chop the property area's to points and find the two closest points to the centerline.

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline


nielsgerrits
VIP
Forum|alt.badge.img+62

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

I think it works because the closest distance from the building to the centerline has to be perpendicular? Something like attached workspace? The only time it is not perpendicular is when the centerline is shorter than the building?


f.kemminje
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • August 2, 2022

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

Hi Capturesafe@nielsgerrits​ Thanks for the quick response and workspace. but my case is different, the surveyor goes to

each point(for ex: every mile interval) and checks what is the perpendicular property and how far it is from the road. neighbor finder catches the nearest property not the perpendicular one.

And I don't need distance for each property(need for interval points)

The attached image will give you a clarity

 


nielsgerrits
VIP
Forum|alt.badge.img+62
  • Best Answer
  • August 2, 2022

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

I still think you should do it the other way around, using buildings as Bases and centerlines as Candidates.

 

But if you want to do it this way you can generate the interval you need using a densifier and a chopper. Then create perpendicular lines using the 2DVectorCalculator from the Hub. Then clip away the parts you do not need using the buildings and keep the parts touching the centerline.2022-08-02_15h25_37


f.kemminje
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • August 3, 2022

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

@nielsgerrits​ Thank You very much.


nielsgerrits
VIP
Forum|alt.badge.img+62

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

Cheers :)


ladisrikanta123
Participant
Forum|alt.badge.img

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

@nielsgerrits​ Hey thanks for the neighbor finder method. But i am having some issue with feature merger transformer. Can you pls tell how it will work

 


ladisrikanta123
Participant
Forum|alt.badge.img

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

not able to merge road and building correctly

 


ladisrikanta123
Participant
Forum|alt.badge.img

@nielsgerrits​  I tried neighbor finder But it did not help in this scenario. Because I need perpendicular property to the road centerline

@nielsgerrits​ Hey how to merge it if i have too many roads