A digital twin is a virtual copy of something real that stays in sync with it. For a city, the base of that copy is a 3D model of every building: where it stands, how tall it is, what its roof looks like. Everything else, from flood simulations to solar potential, is computed on top of those blocks.
Many European cities now publish their 3D city model as open data. Most of the world's cities have none, so we measured how close open map data gets on its own. Of 3.6 million buildings mapped in OpenStreetMap across 25 EU capitals, 30.8% carry a height or a number of floors, enough to draw them as 3D blocks. In January 2020 it was 13.3%. Only 6.2% carry a measured height in metres.
The spread between cities is wide. Warsaw is at 93%, Tallinn at 72% and Amsterdam at 68%. Brussels is at 2.4%, Zagreb at 6.1% and Athens at 6.9%.
What is a digital twin
The Digital Twin Consortium defines a digital twin as "a virtual representation of real-world entities and processes, synchronized at a specified frequency and fidelity". Each part of that sentence matters:
- Virtual representation: a data model you can query and run simulations on.
- Real-world entities and processes: a machine, a building, a street network, the traffic on it.
- Synchronized: the model is updated from the real thing, every second for a sensor feed, every year for a building survey.
- Fidelity: how precise the copy is. A twin for energy planning needs roof slopes; a twin for traffic needs lanes and signal timings.
The idea comes from manufacturing, where a twin follows one machine. A city twin follows millions of objects that change at different speeds, so in practice it is a stack of datasets with a shared coordinate system.
The European Commission describes a Local Digital Twin as a virtual replica of a city built from real-time and historical data, algorithms and models, used to simulate mobility, energy, health and sustainability decisions. It funds an open-source toolbox for cities that want to build one.
What a city digital twin is made of
| Layer | What it holds | Typical update |
|---|---|---|
| 3D buildings | Footprint, height, roof shape, sometimes facades and windows | Yearly, from aerial photos and lidar |
| Terrain | Ground height as a raster or mesh | Every few years, from airborne lidar |
| Streets and networks | Roads, cycleways, tram lines, pipes, cables | Continuous, from city works and mapping |
| Registers | Addresses, owners, building use, permits, zoning | Continuous, from municipal systems |
| Live data | Traffic counts, air quality, water levels, energy use | Seconds to hours, from sensors |
The building layer is usually stored in CityGML, the Open Geospatial Consortium standard for 3D city models. CityGML grades a model by level of detail (LoD):
- LoD1: each building is a block with a flat top, its footprint extruded to one height.
- LoD2: the same block with the real roof shape: gables, hips, flat parts.
- LoD3: facades with windows, doors and balconies, mostly made for single projects.
Most open city models are LoD1 or LoD2. That is enough for most of the analyses cities run, because sun, wind, water and sight lines depend on volumes and roofs more than on window frames.
What cities use digital twins for
Planning and permits. A proposed building can be dropped into the model to check its height against neighbours, its shadow on a school yard, or the view from a protected street. Vienna calls its building model "an important planning foundation" (Stadt Wien).
Energy and heat. Roof slope and orientation decide solar yield. Helsinki's Energy and Climate Atlas, built on its 3D model, gives solar calculations for all roof and wall surfaces in the city, about one million surfaces, plus heating demand and geothermal potential per building (City of Helsinki).
Flooding. Water depth only becomes a risk when you know which buildings and floors it reaches. Japan's PLATEAU specification gives buildings attributes for river flooding, inland flooding, tsunami, storm surge and landslide risk (MLIT, PLATEAU standard specification).
Traffic and mobility. A street network with lanes, signals and counts lets a city test a new bus lane or a closed street before it paints anything. This is one of the main use cases in the EU toolbox.
Europe's open 3D city models
These models are published by the city or national government and can be downloaded and reused, commercially included, under the licence shown. We checked each one on 2 October 2026.
| Model | Covers | Level of detail | Format | Licence |
|---|---|---|---|---|
| 3D BAG (TU Delft, 3DGI) | All buildings in the Netherlands | LoD1.2, LoD1.3, LoD2.2 | CityJSON, GeoPackage, OBJ, IFC | CC BY 4.0 |
| Helsinki 3D | Helsinki | LoD1 and LoD2, plus a photo mesh | CityGML 2.0, OBJ | CC BY 4.0 |
| Vienna building model | Vienna, about 200,000 buildings | LoD1.4, plus a roof model in LoD2.1 | Several, via the city's open data viewer | CC BY 4.0 |
| Berlin 3D building models | Berlin | LoD2 | CityGML | Data Licence Germany Zero 2.0 |
| Rotterdam 3D | Rotterdam | LoD1 and LoD2 | CityGML | Public domain |
| Zurich roof model | Zurich | LoD2 | CityGML, GeoPackage, DXF | opendata.swiss open use |
| PLATEAU (MLIT, Japan) | About 250 Japanese cities | LoD1, with LoD2 and LoD3 in selected areas | CityGML | Compatible with CC BY 4.0 |
Two patterns stand out. The Netherlands and Japan built theirs nationally, so every town gets the same model in the same format. Elsewhere it depends on the city, and a company that works across ten European cities often deals with ten formats, coordinate systems and licences.
How far OpenStreetMap is from a 3D city model
OpenStreetMap has building footprints for most European cities, and two tags can turn a footprint into a block: height (in metres) and building:levels (the number of floors above ground). With either one, a renderer can extrude the building into an LoD1 model, using a few metres per floor when only the floor count is known.
We counted, for 25 EU capitals, how many mapped buildings have one of those tags. The counts come from the ohsome API of HeiGIT, which reads the full OpenStreetMap history, inside each city's administrative boundary. Data until 27 July 2026.
| City | Buildings mapped | With height | With floors | Height or floors | Same, January 2020 |
|---|---|---|---|---|---|
| Warsaw | 189,185 | 1.3% | 92.9% | 93% | 7.3% |
| Tallinn | 55,323 | 68.9% | 20.5% | 71.6% | 5.2% |
| Amsterdam | 212,018 | 65.8% | 9.6% | 67.7% | 0.6% |
| Prague | 174,474 | 0.8% | 63.5% | 63.8% | 60.1% |
| Paris | 103,646 | 0.7% | 62.9% | 63.2% | 53.1% |
| Helsinki | 67,146 | 1.2% | 38.4% | 38.9% | 14.1% |
| Berlin | 503,436 | 1.4% | 34.4% | 35.1% | 18.6% |
| Lisbon | 53,756 | 17.7% | 18.8% | 34.3% | 7.1% |
| Riga | 62,440 | 0.3% | 30% | 30.1% | 34.3% |
| Stockholm | 81,885 | 0.4% | 27.8% | 28.1% | 8% |
| Bratislava | 88,469 | 0.6% | 26.9% | 27% | 21.1% |
| Dublin | 205,386 | 0.1% | 26.6% | 26.6% | 25.8% |
| Vienna | 251,270 | 1.2% | 22.4% | 22.9% | 2.3% |
| Copenhagen | 66,515 | 0.5% | 22.3% | 22.6% | 1.2% |
| Bucharest | 133,346 | 5.8% | 16.2% | 20.8% | 11.4% |
| Madrid | 129,604 | 0.3% | 19.5% | 19.6% | 12.3% |
| Sofia | 132,825 | 0.3% | 14.9% | 14.9% | 8.7% |
| Luxembourg | 22,057 | 0.3% | 11.7% | 11.8% | 2.9% |
| Budapest | 258,533 | 0.7% | 11.1% | 11.2% | 9.1% |
| Rome | 202,067 | 1.2% | 9.3% | 10.3% | 3.1% |
| Ljubljana | 55,898 | 0.5% | 9% | 9.3% | 2.9% |
| Vilnius | 106,055 | 0.3% | 7% | 7.2% | 2.6% |
| Athens | 66,594 | 3.7% | 3.3% | 6.9% | 1.6% |
| Zagreb | 125,999 | 1% | 5.4% | 6.1% | 1.9% |
| Brussels | 249,183 | 0% | 2.4% | 2.4% | 0.3% |
| All 25 | 3,597,110 | 6.2% | 25.8% | 30.8% | 13.3% |
What the numbers show:
- Floors are far more common than heights. 25.8% of buildings have a floor count and 6.2% a height in metres. A floor count is easy to add by looking at a building, while a height needs a survey or a lidar model.
- Three cities moved fast. Warsaw went from 7.3% to 93%, Tallinn from 5.2% to 71.6% and Amsterdam from 0.6% to 67.7%, almost all of it since January 2023 in Amsterdam's case (3.4% then). For data that grew that fast, check the edit history and
sourcetags before you rely on it. - Prague and Paris got there early. Both were above 50% in 2020 and have edged up since.
- Most capitals are below a quarter. The median city, Vienna, is at 22.9%, and the city has its own open LoD2 model.
- Riga went down, from 34.3% to 30.1%, because new buildings were mapped faster than floors were added to them.
What this means for product teams
If your product needs 3D buildings in a few European cities, the official open models are the better source where they exist. They are measured from lidar, cover every building and come with a clear licence. Budget for the format work: CityGML, CityJSON and OBJ files in national coordinate systems need converting before they reach a web map.
If you need the same look across many cities, OpenStreetMap is the only source with one schema everywhere. Plan for a fallback height, because in most capitals two thirds or more of the buildings have no height data. A common fallback is a fixed height by building type, or a floor count from a national register where you have one.
Treat floor counts as approximate. Ten floors is 30 metres in an office district and 35 in a 19th-century block, and roofs, mezzanines and basements add more variation.
For analysis, such as shade, solar or flood exposure, use the official LoD2 model or a lidar-derived height. A block model with guessed heights is fine for display and weak for simulation.
For drones, delivery robots and other machines that move through the city, the buildings layer is one input among several. Our series hub, maps for machines, covers what else they read.
Draw OpenStreetMap buildings in 3D
MapAtlas vector tiles carry OpenStreetMap buildings in a buildings layer with height and min_height where the data has them. In MapLibre GL JS, a fill-extrusion layer draws them as blocks. Buildings without a height get 6 metres here, so they still show as low blocks:
map.addLayer({
id: 'buildings-3d',
type: 'fill-extrusion',
source: 'mapatlas', // your vector tile source
'source-layer': 'buildings',
minzoom: 14,
paint: {
'fill-extrusion-color': '#c9ced6',
'fill-extrusion-height': ['coalesce', ['get', 'height'], 6],
'fill-extrusion-base': ['coalesce', ['get', 'min_height'], 0],
'fill-extrusion-opacity': 0.9
}
});
map.setPitch(55);
To improve the data in your own city, add height or building:levels to buildings in OpenStreetMap. Our introduction to OpenStreetMap explains how the tags and the editing work.
Method and limits
- Area: each capital's administrative boundary in OpenStreetMap (relation IDs in the CSV), outline from Nominatim, simplified to about 20 metres. Malta and Cyprus are left out because their capital municipalities are very small or divided.
- Buildings: every OpenStreetMap element with a
buildingtag other thanbuilding=no, counted with the ohsome API (HeiGIT) on 1 January 2020, 1 January 2023 and 27 July 2026. - With height or floors: elements that have a
heighttag, abuilding:levelstag, or both. We did not check whether the values are plausible. - Per object: a garden shed counts as much as a tower block. A share weighted by floor area would be higher in most cities, because large buildings are mapped in more detail.
- What it does not measure: roof shapes,
building:partdetail,min_heightfor overhangs, or how accurate the heights are. - Script:
scripts/seo/blog-keyword-research/digital-twin-city.mjsin our repository, with the raw API answers cached next to the research file.
Sources
- Digital Twin Consortium, definition of a digital twin, December 2020
- European Commission, EU Local Digital Twin Toolbox
- Open Geospatial Consortium, CityGML standard
- 3D BAG, documentation, TU Delft 3D Geoinformation group and 3DGI
- City of Helsinki, Helsinki 3D
- Stadt Wien, Baukörpermodell
- Senate Department for Urban Development, Berlin, 3D building models LoD2
- Gemeente Rotterdam, Rotterdam 3D
- Stadt Zürich, 3D roof model on opendata.swiss
- MLIT Japan, Project PLATEAU and site policy
- HeiGIT, ohsome API; © OpenStreetMap contributors
Preguntas frecuentes
What is a digital twin?
A digital twin is a virtual model of a real object, place or process that is kept in sync with it by data. The Digital Twin Consortium defines it as a virtual representation of real-world entities and processes, synchronized at a specified frequency and fidelity. A factory twin follows machines; a city twin follows buildings, streets, traffic and weather.
What is a city digital twin made of?
Five layers: a 3D model of the buildings, a terrain model, the street and transport network, the city's registers (who owns what, which permits apply), and live or recurring data from sensors. The buildings are usually stored as a CityGML 3D city model, at level of detail 1 (blocks with flat roofs) or 2 (blocks with roof shapes).
Which cities have a free 3D city model?
Many publish one as open data. Helsinki, Vienna and the 3D BAG for the whole of the Netherlands use CC BY 4.0, Berlin uses the Data Licence Germany Zero, Rotterdam publishes as public domain, and Zurich uses the opendata.swiss open terms. Japan's PLATEAU programme publishes 3D city models of about 250 cities under terms compatible with CC BY 4.0.
Can OpenStreetMap be used as a 3D city model?
For a simple block model, partly. Of 3.6 million buildings mapped in 25 EU capitals in July 2026, 30.8% carried a height or a number of floors, enough to extrude them. Only 6.2% had a measured height. Coverage ranged from 93% in Warsaw to 2.4% in Brussels, so most cities still need an official model or a fallback height.

