Parse Well-Known Binary (WKB) data into a flat Float64Array.
Float64Array
Supports 2D POINT, LINESTRING, POLYGON, MULTIPOINT. Byte order is auto-detected (little-endian or big-endian).
bytes
Uint8Array
const coords = parseWkb(new Uint8Array(wkbBuffer)); Copy
const coords = parseWkb(new Uint8Array(wkbBuffer));
Parse Well-Known Binary (WKB) data into a flat
Float64Array.Supports 2D POINT, LINESTRING, POLYGON, MULTIPOINT. Byte order is auto-detected (little-endian or big-endian).
Arguments
bytes:Uint8Arraycontaining WKB data.Example