DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.AsPolygon | Methods | Properties
Convert the shape to a TGIS_ShapePolygon.
// C# public ITGIS_ShapePolygon AsPolygon();
' VisualBasic Public Function AsPolygon() As ITGIS_ShapePolygon
// Oxygene public function AsPolygon : ITGIS_ShapePolygon;
| Type | Description |
|---|---|
| ITGIS_ShapePolygon | New TGIS_ShapePolygon instance created from the current geometry. |
PURPOSE: Produces polygon geometry for workflows that need filled areas, ring-based topology, or area calculations.
BEHAVIOR: Creates and returns a new TGIS_ShapePolygon from the current shape geometry. Polygon parts are interpreted as rings, and nonpolygon input may be closed during conversion.
USAGE: Use this method when normalizing geometry to an area feature for rendering, topology handling, or spatial analysis.
CONSTRAINTS: Converting point or line geometry may produce automatically closed rings that are not topologically valid.