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).
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
buffer | AsyncBuffer | The file’s bytes, read a range at a time. |
name | string | Its name or URL, for messages. |
Returns
Section titled “Returns”Promise<FlatGeobufFacts>
Throws
Section titled “Throws”A FormatError: not-format, compressed, read.