Skip to content

readFlatGeobufFacts

readFlatGeobufFacts(buffer, name): Promise<FlatGeobufFacts>

Defined in: packages/core/src/renderer/cloud-sources.ts:484

A FlatGeobuf file’s facts — feature count, spatial index, geometry type, CRS, extent, columns — from its first bytes and header alone, through any AsyncBuffer (large data round 2 U6, KTD12). A projected CRS is reported (lonLat), not refused. Node-safe; the reader is downloaded on first use (the flatgeobuf on-demand module).

ParameterTypeDescription
bufferAsyncBufferThe file’s bytes, read a range at a time.
namestringIts name or URL, for messages.

Promise<FlatGeobufFacts>

A FormatError: not-format, compressed, read.