NEW
A simple, non-topological vector format storing geometry and attributes across multiple related files.
DESCRIPTION
The Esri Shapefile is a legacy yet widespread geospatial vector format composed of multiple files, typically .shp (geometry), .shx (index), .dbf (attributes), and optional .prj (projection). It stores points, lines, and polygons without enforcing topology. Despite size and attribute limitations, it remains common for data exchange due to broad tool support. Modern alternatives such as GeoPackage and GeoJSON offer single-file storage, extended types, and better web compatibility. Shapefile is increasingly considered outdated for new projects in favor of more robust formats.
ALTERNATIVE DEFINITIONS
Esri
The shapefile is a simple, non-topological format for storing the geometric location and attribute information of geographic features.
Emphasizes simplicity and non-topological nature from the original format creator.
QGIS
The Esri Shapefile is a vector data format for storing the location, shape, and attributes of geographic features.
Highlights the three-part structure: location, shape, and attributes, from an open-source GIS project.
RELATED TERMS
Well-Known Text Well-Known Binary DBF Projection OGR QGIS ArcGIS Topology
COMPETING TERMS
KNOWLEDGE AREAS
Data Storage & Operations Data Engineering Data Integration & Interoperability Data Management
TARGET AUDIENCE
Data Engineer Data Scientist Data Analyst Data Architect Software Developer
EXTERNAL SOURCES
- Wikipedia - Shapefile
- GDAL - Technical details for Shapefile driver.
- Esri - Original shapefile technical description.
- QGIS - Support notes and considerations.
TOP QUESTIONS
What files make up a Shapefile?
At minimum, .shp (geometry), .shx (index), and .dbf (attributes). Often .prj for projection and others like .sbn or .cpg appear.
Category: Concepts
Why is Shapefile still used?
Broad tool compatibility and historical prevalence keep Shapefile relevant for exchange, despite limitations and better modern alternatives.
Category: Relevancy
What are Shapefile’s main limitations?
Limited attribute types, 10-character field names, size constraints, and lack of topology are common limitations.
Category: Limitations
What modern alternatives to Shapefile exist?
GeoPackage consolidates data into a single SQLite file. GeoJSON is ideal for web and APIs.
Category: Alternatives
How do I convert Shapefile to GeoJSON?
Use GDAL’s ogr2ogr or QGIS. Command example: ogr2ogr -f GeoJSON output.json input.shp.
Category: How-To
Does Shapefile support 3D or curves?
It supports Z/M values but lacks robust handling for curves and complex geometries compared to newer formats.
Category: Scope
How is Shapefile typically indexed?
The .shx file provides a simple positional index; advanced spatial indexes are usually provided by databases post-import.
Category: Indexing
Is Shapefile good for big data workflows?
Not ideal. Consider columnar or database-backed formats for scalability and schema evolution.
Category: Performance
Why is Shapefile considered outdated?
Its multi-file structure and constraints complicate management. GeoPackage and GeoJSON provide more robust, modern capabilities.
Category: Opinion