GML 📜

GML (Geography Markup Language)

Open Beta
.gml · application/gml+xml

GML is an OGC standard for encoding geographic features in XML. Widely used in INSPIRE, WFS services, and enterprise GIS infrastructure. Version 3.2.1 (ISO 19136:2007).

Export GML now ✨ Open Beta — free, no limits

Key Features

OGC/ISO standard
XML format
INSPIRE support
Single .gml file, no XSD schema
Example GML export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

About GML Format

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.

What Program Opens GML Files

The following programs and applications can open, edit, and work with GML (Geography Markup Language) (.gml) files exported from OSM2CDR:

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

Format specifications

Who Uses GML Maps

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

How to Export GML

1
Select area
Draw a rectangle or polygon on the interactive map at osm2cdr
2
Choose GML
Select GML (Geography Markup Language) from the list of 127 available export formats
3
Export
Click Export and receive your .gml file in 1-5 minutes
4
Download
Download the ready GML file and open it in QGIS

How to Open After Export

Popular maps in GML

Free

Get GML (Geography Markup Language) map exports

Download professional GML maps from OpenStreetMap. Instant generation, any area.

Free / export
Export GML now →

Frequently Asked Questions

What is GML?
Where is GML used?
What exactly arrives in the file?
Is an XSD schema included?
Which coordinate system does the GML arrive in?

Compare with Other Formats

Related Formats

Frequently Exported Together

Related Articles