User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_shape.createfromewkb_olevariant

Table of Contents

TGIS_Shape.CreateFromEWKB method

DK for Java | tatukgis.jdk.TGIS_Shape.CreateFromEWKB | Constructors | Fields | Methods | Properties

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

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

Syntax

// Java
public TGIS_Shape CreateFromEWKB(
  OleVariant _ewkb
);
// Oxygene
public
  function CreateFromEWKB(
    _ewkb : OleVariant
  ) : TGIS_Shape; virtual;

Parameters

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

Result

Type Description
TGIS_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 01:35

Page Tools