MapWinGIS:Utils Area
From MapWindow GIS
Area
Returns the area of the polygon shape. For mulit-part polygons which may contain counter-clockwise holes, the area of the holes will be subtracted from that of the surrounding clockwise portions.
VB.NET Usage
ReadOnly Property Area(Shape As MapWinGIS.Shape) As Double
Parameters
|
Shape | The polygon shape for which the area is required. |
| ReturnValue | The area of the polygon shape. |
Sample Code
Private Sub UtilsArea()
Dim utils As New MapWinGIS.Utils()
Dim shape As New MapWinGIS.Shape()
Dim area As Double
'Get the area of the polygon shape
area = utils.Area(shape)
End Sub
VB 6 Usage
ReadOnly Property Area(Shape As Shape) As Double
Parameters
|
Shape | The polygon shape for which the area is required. |
| ReturnValue | The area of the polygon shape. |
Sample Code
Private Sub UtilsArea()
Dim utils As New MapWinGIS.utils
Dim shape As New MapWinGIS.shape
Dim area As Double
'Get the area of the polygon shape
area = utils.area(shape)
End Sub
















