I'm trying to identify which edge of a land parcel is facing North.
I have found the 'front' of the parcel by finding the edge of the parcel closet to the road. Now I need to identify which edge of the parcel (labelled 'Front', 'Left', 'Back' and 'Right', clock-wise from the 'Front') is facing North.
I'm a bit stuck on where to even start with this. Any and all help is much appreciated!
Solved! Go to Solution.
Apologies for perhaps some confusion with my explanation. There's no need to solve an orthogonal vector using the cross product, rather, we can simply solve the gradient of the line segment and solving the angle of the perpendicular gradient.
I have sketched up a basic example below with all 3 cases mentioned above. Hope this helps
Hi OrlaHammond,
If you are looking for the a "Northern facing" line, you need to check each polygon geometry line segment's orthogonal vector in combination with the gradient of the line segment.
The orthogonal vector can be solved using the cross product. You can calculate the bearing by adding the gradient of the line segment. Also be careful of the direction of the gradient as this will affect the calculation of bearing.
I am assuming some of your parcels may not be always rectangular e.g. more than 4 lines. The condition to fine the most "Northern facing" line would be:
Hi there,
I'm not quite following what you mean. Could you break it down a bit more?
Thanks for your help.
Apologies for perhaps some confusion with my explanation. There's no need to solve an orthogonal vector using the cross product, rather, we can simply solve the gradient of the line segment and solving the angle of the perpendicular gradient.
I have sketched up a basic example below with all 3 cases mentioned above. Hope this helps
Thanks for your help!