User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.aspolygon_void

Table of Contents

ITGIS_Shape.AsPolygon method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.AsPolygon | Methods | Properties

Convert the shape to a TGIS_ShapePolygon.

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public ITGIS_ShapePolygon AsPolygon();
' VisualBasic
Public Function AsPolygon() As ITGIS_ShapePolygon
// Oxygene
public
  function AsPolygon : ITGIS_ShapePolygon;

Result

Type Description
ITGIS_ShapePolygon New TGIS_ShapePolygon instance created from the current geometry.

Remarks

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.

2026/07/05 01:25

Page Tools