Skip to main content

Schema module · geometry data

Geometries

loaders.gl provides several geometry representations so geospatial data can move from format decoders to maps, analysis code, and binary rendering paths.

The geometry family

Use the geometry representation that matches the work.

Readable GeoJSON is useful for application logic; binary and columnar forms reduce conversion overhead for rendering and analytical pipelines.

GeoJSONTable

FeatureCollection with table metadata

Binary

Typed geometry arrays for rendering

WKB

Compact interoperable geometry bytes

Tessellation

Optional polygon preparation for drawing

Detailed guide

Geometry reference

The sections below introduce the supported geometry table forms and tessellation considerations.

GeoJSONTable​

The GeoJSONTable is one of the standard data return formats from loaders.gl loaders. It is a GeoJSON FeatureCollection with two extra fields (shape and schema)

Binary Geometries​

loaders.gl defines a Binary Geometry Format.

The format is designed to work directly with the binary support in deck.gl layers.

See the binary feature layout for the retained rendering representation.

Tesselation​

Some loaders can perform tesselation.

This is typically done with earcut, which is a very fast polygon tesselator. The drawback with

There can also be problems if polygons have very large numbers of holes.