CityGML 🏙

CityGML (OGC 3D City Model)

Open Beta
.gml · application/gml+xml

Export 3D buildings to CityGML -- the OGC standard for 3D city models. XML format with LOD 1 (block building models). Used in urban planning, GIS analysis, and city management.

Export CityGML now ✨ Open Beta — free, no limits

Key Features

CityGML 2.0
LOD 1 blocks
Heights and storeys
Building types
GIS interoperability
Example CityGML export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

About CityGML Format

CityGML is an OGC standard for semantic 3D city models. It differs from an ordinary 3D mesh in that a building here is not just a set of triangles but an object with meaning: it has walls, a roof, a height, a floor count and a function. That is exactly why the format took root in urban planning and city computations rather than in visualization.

A map is exported to CityGML when a 3D city is needed for analysis: calculating insolation and solar panel potential, modeling noise, assessing density and building volumes, loading into a city database. Such tasks need attributes, not a pretty picture.

The output is a single CityGML 2.0 XML file: buildings at LOD1 detail, that is, as closed volumes extruded from OSM outlines by height or floor count, with correctly oriented floor, wall and roof faces. Every building records its measured height, the number of floors and a function code derived from OSM tags. Coordinates are WGS84 (EPSG:4326) by default, and the coordinate system is stated in the file itself.

Pitched roofs, facade details and interior rooms are absent from LOD1 by definition — this is the level of boxes. More detailed models require source data that simply does not exist in OpenStreetMap.

What Program Opens CityGML Files

The following programs and applications can open, edit, and work with CityGML (OGC 3D City Model) (.gml) files exported from OSM2CDR:

💻FME 💻3DCityDB 🌎ArcGIS Pro 🌎QGIS 💻CesiumJS 💻citygml-tools

Format specifications

Who Uses CityGML Maps

🏗
Urban planning
A volumetric model of a block for planning projects and assessment of development.
💻
GIS analysis
A source for spatial analysis: volumes, density, adjacency of buildings.
📊
City management
City computations in a single semantic model rather than in a set of scattered meshes.
🎨
Solar energy
Assessment of solar panel potential: building heights give shading and roof areas.
🗺
Noise modeling
Noise propagation calculations, where buildings act as barriers.

How to Export CityGML

1
Select area
Draw a rectangle or polygon on the interactive map at osm2cdr
2
Choose CityGML
Select CityGML (OGC 3D City Model) 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 CityGML file and open it in FME

How to Open After Export

Popular maps in CityGML

Free

Get CityGML (OGC 3D City Model) map exports

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

Free / export
Export CityGML now →

Frequently Asked Questions

How is CityGML different from CityJSON?
What level of detail?
Which version of CityGML is produced?
What attributes do the buildings have?
What goes into the file besides buildings?

Related Formats

Frequently Exported Together

Related Articles