User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.createfromwkt_widestring

ITGIS_Shape.CreateFromWKT method

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.

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

Syntax

// 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;

Parameters

Name Type Description
_wkt WideString WKT text such as POINT(10 20), LINESTRING(0 0, 10 10), or POLYGON((...)).

Result

Type Description
ITGIS_Shape Newly created shape populated from the parsed WKT geometry.

Remarks

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.

References

2026/07/05 01:25

Page Tools