Loader category
Geospatial loaders
Keep coordinates, attributes, and geometry together while moving between file formats, services, and rendering-oriented data shapes.
Category data
Load many formats into one application path.
Category data lets related loaders return compatible structures, so rendering, analysis, and export code can be shared.
The geospatial path
Keep coordinates, geometry, and attributes together.
Geospatial loaders differ in how they store geometry and how much metadata they carry. The shared category gives applications familiar feature, geometry, and table shapes while each format keeps its own strengths.
Features
Geometry and properties in a feature-oriented shape
Geometry
Single WKT, WKB, or GeoJSON geometry values
Tables
Typed columns with GeoArrow metadata where supported
Services
Remote features, tiles, rasters, and scene data
The category includes local files, cloud-native vector formats, and remote services. Some loaders return one geometry, some return layers of features, and others expose a table that can move into scans or render-oriented converters. Check the format page when CRS, indexing, or layer behavior is important.
Detailed guide
Geospatial shapes and contracts
The reference below records loader outputs, shape selection, geometry representations, layer handling, and conversion boundaries.
Geospatial Category Loaders
The default geospatial table representation is Arrow for the loaders below. Each loader reference documents its alternate shapes and format-specific fields.
| Loader | Default result | Scope |
|---|---|---|
GPXLoader, KMLLoader, TCXLoader | Apache Arrow Table | Features from XML documents. |
GeoJSONLoader | Apache Arrow Table | GeoJSON features. |
ShapefileLoader | Apache Arrow Table | Features joined from geometry and property files. |
SHPLoader | Apache Arrow Table | Geometry-only shapefile records. |
FlatGeobufLoader | Apache Arrow Table | Features from a FlatGeobuf file. |
MVTLoader | Apache Arrow Table | Features from selected vector-tile layers. |
GeoPackageLoader | Apache Arrow Table | Features from a selected table. |
WKBLoader, WKTLoader | GeoJSON geometry | One geometry, without a feature/property wrapper. |
Supported shapes
For loaders with shape selection, options.core.shape sets the default return shape and options[loaderId].shape takes precedence.
| Shape | Loaders | Notes |
|---|---|---|
geojson-table | GeoJSONLoader, FlatGeobufLoader, GeoPackageLoader, GPXLoader, KMLLoader, MVTLoader, ShapefileLoader, TCXLoader | Shared feature-table target. Loader-specific overrides stay under each loader id, e.g. options.mvt.shape. |
arrow | GeoJSONLoader, FlatGeobufLoader, GeoPackageLoader, GMLLoader, GPXLoader, KMLLoader, TCXLoader, ShapefileLoader, SHPLoader, DBFLoader, MVTLoader, MLTLoader | Native Apache Arrow tables. Geometry metadata is available for spatial output. |
binary-feature-collection | GeoJSONLoader | Deck.gl-style binary feature collection output selected with options.geojson.shape. |
object-row-table | GPXLoader, KMLLoader, TCXLoader | Feature rows as plain objects. |
columnar-table | FlatGeobufLoader, MVTLoader | Column-major geospatial output. |
geojson | MVTLoader, MLTLoader | Array of GeoJSON features instead of a table wrapper. |
binary | FlatGeobufLoader, GPXLoader, KMLLoader, MVTLoader, MLTLoader, TCXLoader | Binary feature representations vary by loader. |
binary-geometry | MVTLoader | Geometry-only binary output. |
geojson-geometry | WKBLoader, WKTLoader | Single geometry output. |
raw | GPXLoader, KMLLoader, TCXLoader | Raw parsed XML/document output where supported. |
v3 | ShapefileLoader | Legacy shapefile feature array shape. |
Data Format
For geospatial formats that contain a single layer:
category:string-gisschema?:Schema- Apache Arrow style schemadata:*- Data is formatted according tooptions.gis.formatformat:string- The encoding ofdatalayers, corresponds tooptions.gis.format.loaderMetadata?:object- Loader specific metadata, see documentation for each loader
For geospatial loaders that contain multiple layers:
category:string-gis-layerslayers: A map of layers keyed by layer names. Each layer is formatted according tooptions.gis.formatloaderMetadata?:object- Top-level loader specific metadata, see documentation for each loader
For geospatial loaders that contain a single geometry:
category:string-gis-geometryschema?:Schema- Apache Arrow style schemadata:*- Data is formatted according tooptions.gis.formatformat:string- The encoding ofdatalayers, corresponds tooptions.gis.format.
Conversion Shapes
loaders.gl currently converts GIS data between several related shapes:
| Shape | Family | Typical producer |
|---|---|---|
geojson | feature collection | JSON, KML, GPX, shapefile, MVT |
flat-geojson | flattened feature collection | GIS conversion utilities |
binary-feature-collection | render-oriented feature collection | GIS conversion utilities, deck.gl pipelines |
arrow-binary-feature-collection | Arrow-backed render-oriented wrapper | GIS conversion utilities |
geojson-geometry | single geometry | WKB/WKT/TWKB converters |
wkb, wkt, twkb | geometry wire formats | WKT/WKB loaders and GIS geometry converters |
geoarrow and geoarrow.* | Arrow + GeoArrow metadata | GeoArrow loaders and converters |
See the converter docs for details:
Data structures
GeoJSON
A GeoJSON table wraps a FeatureCollection with its shape and schema metadata.
Features contain a geometry and a properties object. Geometry-only loaders
return a geometry without the feature wrapper.
Binary
Render-oriented binary feature collections group geometry into points, lines,
and polygons. These fields contain typed coordinate, index, feature-ID, and
property buffers; they are not GeoJSON FeatureCollection objects. Other binary
shapes differ by loader, so check the requested shape's reference.
Raw
Raw output preserves format-specific structures and is not a shared geospatial contract. Use it only when your application needs fields that a normalized table cannot represent.
GeoJSON Conversion
Geospatial category data can be converted to GeoJSON (sometimes with a loss of information). Most geospatial applications can consume geojson.
Multi-Geometries And GeometryCollection
For render-oriented binary conversion:
MultiPointis mapped into thepointsbinMultiLineStringis mapped into thelinesbinMultiPolygonis mapped into thepolygonsbinGeometryCollectionis flattened recursively into those same bins
The source feature identity is preserved through feature id arrays.