MapWinGIS:Utils Area

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Utils_Area"

This page has been accessed 1,866 times. This page was last modified on 9 November 2005, at 17:33.