GML 📜

GML (Geography Markup Language)

Open Beta
.gml · application/gml+xml

GML 是 OGC 制定的以 XML 编码地理要素的标准。广泛用于 INSPIRE、WFS 服务和企业级 GIS 基础设施。版本 3.2.1(ISO 19136:2007)。

立即导出 GML ✨ Open Beta — 免费无限制

主要特点

OGC/ISO 标准
XML 格式
支持 INSPIRE
附带 XSD 模式
GML 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 GML 格式

GML is an OGC standard and ISO 19136, in which geographic features are described in plain XML: every feature has its own geometry and set of properties. GML underpins the European INSPIRE infrastructure, WFS service responses and exchange between agency GIS systems — wherever a textual, readable and verifiable format is required.

OpenStreetMap maps are exported to GML when the receiving side works by regulation rather than by convenience: the GIS department accepts XML, the exchange bus validates the document, the corporate system only knows OGC formats. For your own internal work GeoJSON or GeoPackage are handier, while GML is the language of inter-agency conversation.

The output is a single .gml: one wfs:FeatureCollection gathering all the layers of the area. The feature element name repeats the name of the source layer (roads, buildings, water and so on), each feature has its own gml:id, and OSM tags are laid out as child properties. Coordinates are WGS84 (EPSG:4326) with eight decimal places.

The limitations are stated honestly. The document follows the GML 3.2.1 structure with the GML and WFS namespaces, but an application schema (.xsd) of its own is not shipped alongside — conforming to a particular customer schema is done on the receiving side. Each layer is capped at 200,000 features: XML is heavy, and this keeps the file at a workable size.

打开 GML 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 GML (Geography Markup Language)(.gml)文件:

🌎QGIS 🌎ArcGIS 💻GeoServer 💻MapServer 💻FME 💻GDAL/OGR

格式规格

谁在使用 GML 地图

🏗
INSPIRE
The source XML for conforming data to the application schemas of the European spatial data infrastructure.
💻
企业级 GIS
Loading a city base map into an agency GIS that only accepts OGC formats.
📊
WFS 服务
Data in exactly the shape a WFS serves it: handy for testing clients and populating GeoServer.
🎨
政府地籍
A textual, verifiable document for handing geometry over to cadastral and records systems.
🗺
跨机构数据交换
A neutral XML exchange format between organizations running different software.

如何导出 GML

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 GML
从 127 种可用导出格式中选择 GML (Geography Markup Language)
3
导出
点击导出,1–5 分钟内收到您的 .gml 文件
4
下载
下载完成的 GML 文件并在 QGIS 中打开

导出后如何打开

GML 格式的热门地图

Free

导出 GML (Geography Markup Language) 地图

从 OpenStreetMap 下载专业的 GML 地图。即时生成,任意区域。

免费 / 导出
立即导出 GML →

常见问题

什么是 GML?
GML 用在哪些场景?
What exactly arrives in the file?
Is an XSD schema included?
Which coordinate system does the GML arrive in?

与其他格式比较

相关格式

经常一起导出

Related Articles