Shapefile 是地理信息系统(GIS)中最流行的格式。ArcGIS、QGIS、MapInfo 及数十种其他应用均支持。导出内容包含 .shp、.shx、.dbf 和 .prj 文件,打包为 ZIP 压缩包。
主要特点

关于 Shapefile 格式
The shapefile was invented by ESRI in the early 1990s, and it is still the most widespread exchange format in GIS: it is read by ArcGIS, QGIS, MapInfo, GRASS, GeoPandas, PostGIS and by almost anything that can work with a map at all. Formally it is not one file but a set: geometry, an index, an attribute table, a description of the coordinate system and of the encoding.
Data is exported to a shapefile when it goes into somebody else's workflow: hand it to a contractor, load it into a municipal GIS, put it into a project where this has been the practice for years. The format is old and has limitations, but that is exactly why it is guaranteed to open without questions.
What is in the archive: a ZIP where each layer sits in its own folder as a full set of files — roads separately, buildings separately — with a README.txt description next to them. That is not done for looks: one shapefile stores only one geometry type, points, lines and polygons physically cannot live together. The coordinates are WGS84 (EPSG:4326), and the OpenStreetMap attributes are written into the table in UTF-8.
Worth knowing up front: field names are limited to ten characters and long names get truncated, and the geometry file cannot exceed 2 GB. If these limits get in the way — take GeoPackage: the same layers in one modern file and without such restrictions.
打开 Shapefile 文件的程序
以下程序可以打开、编辑和处理从 OSM2CDR 导出的 ESRI Shapefile (SHP)(.shp.zip)文件:
格式规格
- 开放标准
- 仅 2D
- 无损(无质量损失)
- 存储要素属性
- 输出:归档中 4 个文件
- ZIP archive with 4 files: .shp, .dbf, .shx, .prj. EPSG:4326. Field names truncated to 10 characters (dBASE limit).
谁在使用 Shapefile 地图
如何导出 Shapefile
导出后如何打开
- QGIS (free) — unpack the ZIP and drag the geometry files you need into the program window, several layers at once if you like.
- ArcGIS Pro or ArcMap — Add Data and pick the layer; the projection is picked up automatically from the description file.
- GeoPandas — read_file with the path to the layer, then the usual work with the table and the geometry in Python.
- PostGIS — the shp2pgsql utility loads a layer into the database with one command, with coordinate system 4326 specified.
- If Cyrillic text turned into gibberish — set the encoding to UTF-8 in your program: that is what is written in the encoding file next to the data.
Shapefile 格式的热门地图
导出 ESRI Shapefile (SHP) 地图
从 OpenStreetMap 下载专业的 Shapefile 地图。即时生成,任意区域。
常见问题
与其他格式比较
相关格式
经常一起导出
Related Articles
SHP to DWG: Opening a Shapefile in AutoCAD Without Losing Coordinates
How to convert SHP to DXF and DWG: why a shapefile is a set of files, what breaks without the .prj, import via MAPIMPORT
guideПочему слой уезжает на сто метров, хотя система координат в файле записана
usecaseSite Selection for Development: GIS Analysis with OpenStreetMap
How to use GIS and OpenStreetMap data for development site selection: infrastructure, transport, ecology, scoring analys