fromWKB
Creates a Geometry
from Well-Known Binary (WKB) representation.
Parameters
Name | Type | Default | Description |
---|---|---|---|
wkb | Uint8Array | Binary data containing WKB representation of the geometry | |
options? | object | Optional WKB input configuration | |
options.fix? | boolean | false | Automatically repair structural errors in the input (currently just unclosed rings) while reading. |
Returns
Geometry
A new geometry object created from the WKB data
Throws
GEOSError
on invalid WKB data