User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.createfromewkt_widestring

Table of Contents

ITGIS_Shape.CreateFromEWKT method

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

Parses Extended Well-Known Text (EWKT) geometry with optional PostGIS Spatial Reference Identifier (SRID) metadata.

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

Syntax

// C#
public ITGIS_Shape CreateFromEWKT(
  WideString _ewkt
);
' VisualBasic
Public Function CreateFromEWKT(
  ByVal _ewkt As WideString
) As ITGIS_Shape
// Oxygene
public
  function CreateFromEWKT(
    _ewkt : WideString
  ) : ITGIS_Shape;

Parameters

Name Type Description
_ewkt WideString EWKT text such as SRID=4326;POINT(10 20), with optional SRID prefix followed by Well-Known Text (WKT).

Result

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

Remarks

PURPOSE: Imports geometry from Extended Well-Known Text (EWKT), a PostGIS extension of WKT (Well-Known Text) that can include Spatial Reference Identifier (SRID) metadata for CRS (Coordinate Reference System) identification.

BEHAVIOR: Parses the optional SRID prefix and the geometry text, validates the WKT structure, and creates a shape of the appropriate geometry type from the parsed coordinates.

CONSTRAINTS: EWKT is not an OGC (Open Geospatial Consortium) standard format. Malformed input raises an exception.

2026/07/05 01:25

Page Tools