User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.createfromewkb_olevariant

Table of Contents

ITGIS_Shape.CreateFromEWKB method

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

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

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

Syntax

// C#
public ITGIS_Shape CreateFromEWKB(
  OleVariant _ewkb
);
' VisualBasic
Public Function CreateFromEWKB(
  ByVal _ewkb As OleVariant
) As ITGIS_Shape
// Oxygene
public
  function CreateFromEWKB(
    _ewkb : OleVariant
  ) : ITGIS_Shape;

Parameters

Name Type Description
_ewkb OleVariant EWKB value stored in an OleVariant, typically as a byte array or hexadecimal string.

Result

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

Remarks

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

BEHAVIOR: Parses the binary geometry stream, reads the optional SRID metadata, validates the binary structure, and creates a shape of the appropriate geometry type.

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

2026/07/11 00:14

Page Tools