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.
| Characteristic | Value |
|---|---|
| File Format | Shapefile |
| Data Format | Geometry Tables, Arrow tables |
| File Extensions | .shp, .shx, .dbf, .prj, .cpg |
| MIME Type | application/octet-stream |
| File Type | Binary, multi-file |
| Loader APIs | load, parse, parseSync, parseInBatches |
| Loader Worker Thread | ✅ Yes |
| Loader Streaming | ✅ Yes |
Loaders
.shp geometry component of a Shapefile.SubloaderDBFLoaderLoads the .dbf attribute table component of a Shapefile.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.