Skip to main content

@terascope/data-mate / teal-frame/wkb

teal-frame/wkb

Functions​

geoShapeToWKB()​

geoShapeToWKB(shape): Uint8Array

Defined in: data-mate/src/teal-frame/wkb.ts:34

Encodes a GeoShape as little-endian ISO WKB, the same bytes DuckDB's ST_AsWKB writes.

Parameters​

ParameterType
shapeGeoShape

Returns​

Uint8Array


wkbToGeoShape()​

wkbToGeoShape(bytes): GeoShape

Defined in: data-mate/src/teal-frame/wkb.ts:47

Decodes WKB of a Point, Polygon or MultiPolygon, in either byte order, to a GeoShape.

Parameters​

ParameterType
bytesUint8Array

Returns​

GeoShape