## Area

*(overloaded version 2)*

**Syntax**

double Area(ref MapWinGIS.Shape shape, MapWindow.Interfaces.UnitOfMeasure shapeUnits)

**Summary**

Computes the area of a polygon. For multi-part polygons, assume
holes are counter-clockwise.

**Parameters**

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. |

**Returns**

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.

**Remarks**

Added 3/17/2008. This function is new in MapWindow 4.5