DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.CreateFromWKT | Methods | Properties
Parses geometry from Well-Known Text (WKT), the OGC (Open Geospatial Consortium) standard text representation.
// C# public ITGIS_Shape CreateFromWKT( WideString _wkt );
' VisualBasic Public Function CreateFromWKT( ByVal _wkt As WideString ) As ITGIS_Shape
// Oxygene public function CreateFromWKT( _wkt : WideString ) : ITGIS_Shape;
| Name | Type | Description |
|---|---|---|
| _wkt | WideString | WKT text such as POINT(10 20), LINESTRING(0 0, 10 10), or POLYGON((...)). |
| Type | Description |
|---|---|
| ITGIS_Shape | Newly created shape populated from the parsed WKT geometry. |
PURPOSE: Imports vector geometry from WKT (Well-Known Text), a human-readable OGC (Open Geospatial Consortium) interchange format widely used by GIS databases, services, and files.
BEHAVIOR: Validates the WKT syntax, parses the geometry structure, and creates a shape of the corresponding type, such as point, arc/line, polygon, or multipart geometry.
CONSTRAINTS: WKT does not carry CRS (Coordinate Reference System) metadata. Malformed input raises an exception.