FlatGeobufLoader
Â
Loader for the FlatGeobuf format, a binary FlatBuffers-encoded format that defines geospatial geometries.
Loader | Characteristic |
---|---|
File Extension | .fgb , |
File Type | Binary |
File Format | FlatGeobuf |
Data Format | Geometry |
Supported APIs | load , 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​
Option | Type | Default | Description |
---|---|---|---|
gis.reproject | boolean | false | Whether to reproject input data into the WGS84 coordinate system. |
Attribution​
The FlatGeobufLoader
wraps the flatgeobuf
NPM module which is published under the ISC license.