Quick Insight
A shapefile is a geographic vector data format developed by Esri for storing the location, shape, and attributes of geographic features. It can represent features as points, lines, or polygons and is supported by many GIS and mapping applications.
Why Shapefiles Matter
- They’re widely supported, so shapefiles created in one GIS tool can usually be opened, edited, or converted in another.
- They’re commonly used to store geographic features such as building footprints, property boundaries, roads, rivers, and points of interest.
- They store geometry alongside attribute information, allowing each feature to carry details such as a name, ID, or category.
The honest limit: a shapefile is not actually a single file. It is a collection of related files that need to stay together. It also has a relatively rigid structure and lacks some of the advanced capabilities available in newer geospatial database formats.
Types of Shapefiles
- Point shapefiles: Store individual locations, such as businesses, addresses, or points of interest.
- Line shapefiles: Store connected paths or features, such as roads, rivers, or boundaries.
- Polygon shapefiles: Store enclosed areas, such as building footprints, property parcels, neighborhoods, or geofences.
Want to see how SafeGraph delivers geometry data, including shapefile-compatible formats?
Read the guide: Geometry Data
Frequently Asked Questions
1. What's the difference between a shapefile and GeoJSON?
A shapefile is a widely supported, multi-file format commonly used in GIS workflows. GeoJSON is a text-based format that stores geographic features in JSON and is often easier to read, edit, and use in web mapping applications.
2. Can one shapefile contain multiple shape types?
No. A shapefile can store only one geometry type at a time, such as points, lines, or polygons. It cannot contain a mixture of these geometry types in the same shapefile.
3. What files make up a shapefile?
A shapefile is made up of several related files. The three core files are .shp, which stores the feature geometry, .shx, which stores an index for the geometry, and .dbf, which stores attribute information. A .prj file can also be included to define the coordinate system and projection. These related files should be kept together when moving or sharing a shapefile.
4. Who created the shapefile format?
Esri developed the shapefile format. It has since become widely supported by GIS software from Esri and other providers.
5. Is a shapefile the same as polygon data?
No. Polygon data describes a type of geographic feature made up of enclosed areas. A shapefile is a file format that can store polygon data as well as point and line data.