Skip to main content

Cloud-native vector module

Ask a vector file for the features in a box.

FlatGeobuf combines a binary feature layout with a spatial index that can be read over HTTP ranges. The module turns that into a loader and source for bounded vector access and Arrow feature tables.

Cloud-native reads

Ask for the data. Fetch only the bytes behind it.

Range-aware sources translate a logical request into scheduled byte ranges. Metadata, caching, and cancellation stay in the transport layer while the application works with a normal decoded result.

Range scheduler

mergecacheabort

offsets · limits · HTTP Range

Useful bytes

Header bytesdiscover the layout
Selected intervalsfetch only what is needed
Decoded resulttable, tile, or raster data

The same access pattern powers tiled scenes, columnar files, point clouds, and windowed rasters without making the whole object a prerequisite.

The FlatGeobuf path

Use the index before decoding features.

A source can discover the header and packed R-tree, select candidate features by bounds, then decode only the ranges needed for the request.

Index

Packed R-tree for spatial candidate selection

Access

HTTP range reads for cloud-hosted files

Output

GeoJSON-like features or Arrow feature tables

Operations

Bounds, predicates, projection, limits, and cancellation

From-v3.1arrow output from v5.0source loader from v5.0

The @loaders.gl/geospatial/flatgeobuf module handles the FlatGeobuf format, a binary FlatBuffers-encoded format that defines geospatial geometries.

Detailed guide

FlatGeobuf module details

The sections below cover installation, loader and source APIs, spatial filtering, Arrow output, and attribution.

Installation​

npm install @loaders.gl/geospatial
npm install @loaders.gl/core

Loaders and Writers​

Loader / SourceDescription
FlatGeobufLoaderLoads FlatGeobuf files as geospatial tables.
FlatGeobufLoader From-v5.0Streams features and spatially filtered data from FlatGeobuf sources.

Attribution​

The FlatGeobufLoader forks the flatgeobuf NPM module under the BSD 2-Clause license.