将地图导出为 Excel(.xlsx)格式,包含坐标和 WKT 几何。可在 Microsoft Excel、Google Sheets、LibreOffice 中打开。每个图层为一张独立工作表。
主要特点
关于 Excel 格式
XLSX is a Microsoft Excel workbook, the ISO 29500 standard (OOXML). For geodata it is not a GIS format but a way to show the contents of a map to people who have no GIS at all: the file opens on any office computer, in Google Sheets and in LibreOffice.
The export is for when map features have to be counted, sorted and handed around: a list of pharmacies in a district, a register of buildings with addresses, an inventory of green areas. A table is convenient for filtering, building pivots and pasting the result straight into a report.
The workbook has a separate sheet for each map layer, and the sheet name matches the layer name. A row is one feature: the columns are layer, name, type, then lon and lat (centroid coordinates in WGS84), then geometry_wkt with the full geometry in text form, and all the OpenStreetMap attributes.
The shape of lines and polygons is not lost — it sits in the geometry_wkt column, and QGIS or PostGIS will restore the whole feature from it. But working with that inside Excel itself is awkward: if you need cartography rather than a table, take GeoJSON or GeoPackage.
打开 Excel 文件的程序
以下程序可以打开、编辑和处理从 OSM2CDR 导出的 Excel XLSX(.xlsx)文件:
格式规格
- 开放标准
- 仅 2D
- 无损(无质量损失)
- 存储要素属性
- 输出:1 个文件
- Microsoft Excel .xlsx (ISO 29500 OOXML). One sheet per layer, geometry as WKT column. Opens in Excel, LibreOffice, Google Sheets.
谁在使用 Excel 地图
如何导出 Excel
导出后如何打开
- Microsoft Excel, LibreOffice Calc, Google Sheets — open with a double click; the sheets correspond to map layers, and filters and pivot tables work as with any ordinary data.
- QGIS (free) — Layer → Add Vector Layer, choose the .xlsx and the sheet you need; or "Add Delimited Text Layer" if points from the lon and lat columns are enough.
- Python — pandas.read_excel("map.xlsx", sheet_name=None) reads all the sheets at once, and shapely.wkt.loads restores the geometry from the geometry_wkt column.
- CRM and record-keeping systems — most of them accept .xlsx import directly: map the name, type, lon and lat columns onto your own fields.
- If there are tens of thousands of features, Excel will start to lag: filter out unneeded layers at export time, or take CSV or GeoPackage instead.