Identifying the north facing edge of a polygon

503
4
Jump to solution
04-11-2021 07:28 PM
Labels (1)
ÓrlaHammond
New Contributor II

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!

0 Kudos
1 Solution

Accepted Solutions
LongDinh
New Contributor III

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

LongDinh_0-1619489933448.png

 

 

 

View solution in original post

4 Replies
LongDinh
New Contributor III

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:

  1. The line segment's orthogonal vector's angle +- gradient (depending on direction) is between 315 and 45 bearing,
  2. The line segment's orthogonal vector angle is the minimum (closest to 0 bearing) of all line segment orthogonal vector angles.
  3. The line segment's vector coordinates are max of other line segment vectors.

 

ÓrlaHammond
New Contributor II

Hi there,

I'm not quite following what you mean. Could you break it down a bit more?

Thanks for your help.

0 Kudos
LongDinh
New Contributor III

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

LongDinh_0-1619489933448.png

 

 

 

View solution in original post

ÓrlaHammond
New Contributor II

Thanks for your help!