Shapefile

Overview

Shapefile is a popular vector data format used in GIS that stores geometric location and attribute information for spatial features, typically consisting of multiple files with extensions such as .shp, .shx, and .dbf. Developed by Esri in the early 1990s, shapefiles remain widely used despite limitations.

Key Concepts

Multi-file format requires several files with the same base name. Single geometry type means each shapefile can only contain one type (point, line, or polygon). DBF limitation restricts field names to 10 characters. File size limit caps individual components at 2GB. No NULL support in attribute fields.

Required Files

ExtensionPurpose
.shpGeometry (shapes)
.shxSpatial index
.dbfAttributes (dBASE table)

Optional Files

ExtensionPurpose
.prjCoordinate reference system
.cpgCharacter encoding
.sbn/.sbxSpatial index (Esri)

Limitations

  • 2GB file size limit
  • 10-character field names
  • No date-time support
  • Single geometry type per file
  • No topology

Appendix

Created: 2025-12-13 | Modified: 2025-12-13

See Also