(overloaded version 2)
double Area(ref MapWinGIS.Shape shape, MapWindow.Interfaces.UnitOfMeasure shapeUnits)
Computes the area of a polygon. For multi-part polygons, assume
holes are counter-clockwise.
|shape||The polygon shape.|
|shapeUnits||Member of MapWindow.Interfaces.UnitOfMeasure enumeration specifying the distance units used by the shapefile projection. If the units are DecimalDegrees, the calculated area will always be in square kilometers.|
The area in square units, or 0.0 if it could not be found. If shapeUnits are DecimalDegrees, the calculated area is in square kilometers.
Added 3/17/2008. This function is new in MapWindow 4.5