Skip to main content

FlatGeobufLoader

flatgeobuf-logo

From-v3.1

 

BETA

Loader for the FlatGeobuf format, a binary FlatBuffers-encoded format that defines geospatial geometries.

LoaderCharacteristic
File Extension.fgb,
File TypeBinary
File FormatFlatGeobuf
Data FormatGeometry
Supported APIsload, loadInBatches, parse, parseSync, parseInBatches

Usage​

import {FlatGeobufLoader} from '@loaders.gl/flatgeobuf';
import {load} from '@loaders.gl/core';

const geojsonFeatures = await load(url, FlatGeobufLoader);

Outputs​

GeoJSON​

The parser will return an array of GeoJSON features in the coordinate system of the input data. If gis.reproject is enabled, coordinates will always be reprojected to WGS84.

Options​

OptionTypeDefaultDescription
gis.reprojectbooleanfalseWhether to reproject input data into the WGS84 coordinate system.

Attribution​

The FlatGeobufLoader wraps the flatgeobuf NPM module which is published under the ISC license.