@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
| Parameter | Type |
|---|---|
shape | GeoShape |
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
| Parameter | Type |
|---|---|
bytes | Uint8Array |
Returns
GeoShape