Click or drag to resize

Polygon Constructor (Polygon)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Create a new Polygon object with the specified geometry.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public Polygon(
	params Polygon[] polygons
)

Parameters

polygons
Type: Telogis.GeoBase.GeometryPolygon
The polygon geometry for this Polygon object.
Remarks
A polygon must contain at least four points, creating the simplest polygon: a triangle. The first and last points must be equal.
Examples
C#
Telogis.GeoBase.Polygon newPolygon = new Telogis.GeoBase.Polygon(
    new Telogis.GeoBase.Geometry.Polygon(
        new Telogis.GeoBase.Geometry.LineString[]{
            new Telogis.GeoBase.Geometry.LineString(
                new LatLon(33.694165,-117.956236),
                new LatLon(33.697935,-117.842219),
                new LatLon(33.616715,-117.834638),
                new LatLon(33.694165,-117.956236)
            )
        }
    )
);
See Also