How can I automatically count the number of corners that has a polygon uisng VBA and ArcObjects? Thanks
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
Strictly speaking, the number of corners, is one less than the number of vertices in the polygon. You should cast the geometry (IPolygon) to IPointCollection. The IPointCollection.Pointcount property gives you the number of vertices. Just subtract one to get the number of corners. |
|||||||||||||||||||
|
