Solved

calculate Perpendicular distance between road centerline to property polygon


Badge +3

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
icon

Best answer by nielsgerrits 2 August 2022, 15:26

View original

10 replies

Userlevel 6
Badge +31

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.

Badge +3

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

Userlevel 6
Badge +31

@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?

Badge +3

@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

 

Userlevel 6
Badge +31

@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

Badge +3

@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.

Userlevel 6
Badge +31

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

Cheers :)

@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

 

@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

 

@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

Reply