Finding the angles of a polygon?

2775
2
Jump to solution
03-17-2016 12:04 AM
NigelDsouza
Occasional Contributor

I wish to identify any polygon within a featureclass that have an angle less than 10 Deg similar to the data reviewer's polyline data check tool called "Cutbacks check" Regards, Nigel.

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

There's probably a few ways to do this.

IConstructAngle can give you the angle between three points. These can be the from and to points of each segment in your polygon. So id start by casting the polygon to a segmentcollection, then while carefully iterating each segment, get the three points from the appropriate from and to points, then feed them into the method to get the angle.

You can probably also do this in python with a bit more math.

View solution in original post

2 Replies
by Anonymous User
Not applicable

There's probably a few ways to do this.

IConstructAngle can give you the angle between three points. These can be the from and to points of each segment in your polygon. So id start by casting the polygon to a segmentcollection, then while carefully iterating each segment, get the three points from the appropriate from and to points, then feed them into the method to get the angle.

You can probably also do this in python with a bit more math.

NigelDsouza
Occasional Contributor

Thanks Sean.

This really did the Job for me.

Regards,

Nigel.

0 Kudos