decodeFlatGeobuf
decodeFlatGeobuf(
bytes,url):Promise<FeatureCollection<Geometry,GeoJsonProperties>>
Defined in: packages/core/src/renderer/cloud-sources.ts:436
Decode a whole FlatGeobuf file already in memory (mlym emit reads the
file from disk or the network, then converts it here). Node-safe. The
reader is downloaded on first use (the flatgeobuf on-demand module).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
bytes | Uint8Array | The file. |
url | string | Its name, for messages. |
Returns
Section titled “Returns”Promise<FeatureCollection<Geometry, GeoJsonProperties>>