Skip to content

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).

ParameterTypeDescription
bytesUint8ArrayThe file.
urlstringIts name, for messages.

Promise<FeatureCollection<Geometry, GeoJsonProperties>>