Skip to main content

GIS dataset format

A geospatial dataset, not just a .shp file.

A Shapefile is a coordinated set of geometry, attribute, index, projection, and text-encoding files. loaders.gl assembles those pieces into common GIS and Arrow data shapes.

The dataset boundary

Keep geometry and sidecars together.

The main geometry file is only one part of the format. The loader coordinates the sidecars so application code can work with features, attributes, and spatial metadata as one result.

Geometry

.shp stores the shape records

Attributes

.dbf stores the tabular properties

Index and CRS

.shx indexes records; .prj describes projection

Text encoding

.cpg can identify DBF character encoding

Detailed guide

Shapefile structure and loaders

The reference below covers the file set, loaders, Arrow output, sidecar behavior, and compatibility details.

CharacteristicValue
File FormatShapefile
Data FormatGeometry Tables, Arrow tables
File Extensions.shp, .shx, .dbf, .prj, .cpg
MIME Typeapplication/octet-stream
File TypeBinary, multi-file
Loader APIsload, parse, parseSync, parseInBatches
Loader Worker Thread✅ Yes
Loader Streaming✅ Yes

Loaders​

Multi-File Datasets​

A Shapefile dataset is normally a set of sidecar files. .shp stores geometry, .dbf stores attributes, .shx stores the index, .prj stores projection text, and .cpg stores DBF text encoding.

Arrow​

Set shapefile.shape: 'arrow' to return an Arrow table with DBF property columns and a WKB geometry column.