Skip to main content

fromWKB

Creates a Geometry from Well-Known Binary (WKB) representation.

Parameters

NameTypeDefaultDescription
wkbUint8ArrayBinary data containing WKB representation of the geometry
options?objectOptional WKB input configuration
options.fix?booleanfalseAutomatically repair structural errors in the input (currently just unclosed rings) while reading.

Returns

Geometry

A new geometry object created from the WKB data

Throws

See also

Examples