loaders.gl support
| Type | API |
|---|---|
| Loader | GeoJSONLoader |
| Loader | NDGeoJSONLoader |
| Writer | GeoJSONWriter |
Structured data boundaries
Keep the source shape. Choose the application shape.
JSON, delimited text, BSON, and XML describe data differently. loaders.gl keeps those input boundaries explicit while letting applications choose documents, tables, features, or trees for the next stage.
Input families
Common API boundary
load · parse · write
Application results
A readable interchange format can stay readable at the edge, or become a typed table when that is what the application needs.
The object model
Features first. Geometry stays explicit.
A GeoJSON document can describe one geometry, one feature, or a collection of features. loaders.gl preserves that shape while making large inputs available through batches and table views.
Geometry
Point, line, polygon, and collections
Feature
Geometry plus an optional identifier and properties
Collection
A list of features under one document
Streaming
NDJSON for one feature per line
GeoJSON is a format for encoding a variety of geographic data structures together with properties.
Detailed guide
GeoJSON objects and alternatives
The sections below describe geometry shapes, feature collections, loader behavior, and related geographic formats.
Geometries
Since GeoJSON geometries can be independently useful they are described on a separate page.
Alternatives
| Format | Support | Description |
|---|---|---|
| TopoJSON | ✕ | A more compact version that encodes topology. |