User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.createfromwkb_olevariant

Table of Contents

ITGIS_Shape.CreateFromWKB method

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

Parses geometry from Well-Known Binary (WKB), the OGC (Open Geospatial Consortium) standard binary representation.

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

Syntax

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

Parameters

Name Type Description
_wkb OleVariant WKB 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 WKB geometry.

Remarks

PURPOSE: Imports vector geometry from WKB (Well-Known Binary), a compact OGC (Open Geospatial Consortium) interchange format commonly used for storage and database transmission.

BEHAVIOR: Validates the WKB structure, detects byte order, parses the geometry stream, and creates a shape of the corresponding type.

CONSTRAINTS: WKB does not carry CRS (Coordinate Reference System) metadata. Malformed input raises an exception.

2026/07/05 01:25

Page Tools