Click or drag to resize

PolygonEntity Constructor

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Creates a polygon entity on the supplied layer with the supplied geometry.

Namespace:  Telogis.GeoBase.ShapeUI
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public PolygonEntity(
	ShapeLayer layer,
	Polygon geometry
)

Parameters

layer
Type: Telogis.GeoBase.ShapeUIShapeLayer
The layer that the polygon will belong to.
geometry
Type: Telogis.GeoBase.GeometryPolygon
The polygon's geometry.
Examples
C#
public MyForm() {
// create new shapelayer, where mapMain is a MapCtrl object
myLayer = new ShapeLayer(mapMain);
// create polygon
Telogis.GeoBase.Geometry.Polygon myPol = new Telogis.GeoBase.Geometry.Polygon(
    new Telogis.GeoBase.Geometry.LineString[] {
        new Telogis.GeoBase.Geometry.LineString(
            new LatLon(33.632714, -117.816371),
            new LatLon(33.631749, -117.816903),
            new LatLon(33.631190, -117.815253),
            new LatLon(33.632504, -117.814716),
            new LatLon(33.632714, -117.816371)
        )
    }
);
// create polygon entity
PolygonEntity PolyEntity = new PolygonEntity(myLayer, myPol);
See Also