GML 📜

GML (Geography Markup Language)

Open Beta
.gml · application/gml+xml

GML är en OGC-standard för kodning av geografiska objekt i XML. Används flitigt i INSPIRE, WFS-tjänster och företags-GIS-infrastruktur. Version 3.2.1 (ISO 19136:2007).

Exportera GML nu ✨ Öppen beta — gratis, inga begränsningar

Viktiga funktioner

OGC/ISO-standard
XML-format
INSPIRE-stöd
XSD-scheman inkluderade
Example GML export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Om formatet 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.

Vilket program öppnar GML-filer

Följande program och applikationer kan öppna, redigera och arbeta med GML (Geography Markup Language)-filer (.gml) som exporterats från OSM2CDR:

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

Format specifications

Vem använder GML-kartor

🏗
INSPIRE
The source XML for conforming data to the application schemas of the European spatial data infrastructure.
💻
Företags-GIS
Loading a city base map into an agency GIS that only accepts OGC formats.
📊
WFS-tjänster
Data in exactly the shape a WFS serves it: handy for testing clients and populating GeoServer.
🎨
Statliga fastighetsregister
A textual, verifiable document for handing geometry over to cadastral and records systems.
🗺
Utbyte mellan myndigheter
A neutral XML exchange format between organizations running different software.

Så exporterar du GML

1
Välj område
Rita en rektangel eller polygon på den interaktiva kartan på osm2cdr.ru
2
Välj GML
Välj GML (Geography Markup Language) från listan med 127 tillgängliga exportformat
3
Exportera
Klicka på Exportera och få din .gml-fil på 1–5 minuter
4
Ladda ner
Ladda ner den färdiga GML-filen och öppna den i QGIS

Så öppnar du filen efter exporten

Populära kartor i GML

Free

Hämta kartexporter i GML (Geography Markup Language)

Ladda ner professionella GML-kartor från OpenStreetMap. Direktgenerering, valfritt område.

Gratis / export
Exportera GML nu →

Vanliga frågor

Vad är GML?
Var används GML?
What exactly arrives in the file?
Is an XSD schema included?
Which coordinate system does the GML arrive in?

Jämför med andra format

Relaterade format

Ofta exporterade tillsammans

Related Articles