Lesson 2.1Lesson 2.1 · Modelling the City in 3D
3D City Models & CityGML
Before a city can have a living twin it needs a model of itself in three dimensions - and the quiet revolution of CityGML is that it models the city not as anonymous shapes but as buildings, roads and trees that know what they are and carry their own attributes
Two cities look identical on screen - same streets, same towers, same trees. Click a roof in one and nothing happens; click a roof in the other and it tells you its slope, its material and its area. Only the second one is ready to become a twin.
Every urban digital twin rests on a 3D model of the city, and at first glance one 3D model looks much like another: a field of grey blocks standing on a terrain, streets threading between them, a scatter of trees. You can fly around it, and it is impressive. But there are two very different things that can sit behind that identical-looking picture, and the difference decides whether you have the foundation of a twin or just a handsome piece of scenery.
The first kind is a pile of geometry: millions of triangles and surfaces that, taken together, happen to look like a city. It knows where things are but not what they are. A wall and a tree and a bus are, to it, the same thing - coloured surfaces in space. The second kind is a semantic city model: the same geometry, but organised into named objects that carry meaning. This surface is a roof; that volume is a building with a function and a height; this ribbon is a road. This lesson is about what a 3D city model is, and about CityGML - the open standard that, more than any other, made the second kind possible and gave the world a shared language for describing the semantic city. Get this foundation right and everything later in the course - the data, the simulation, the queries a twin answers - becomes possible. Get it wrong and you are left flying around expensive scenery.
Click a roof. Does it just sit there, or does it say 'I am a roof, south-facing, 60 sq m, on building 4471'? That answer decides if you have a twin's foundation.
From 2D maps to a 3D model of the city
For most of its history, the authoritative record of a city was flat: plans, cadastral maps, zoning drawings, each a 2D projection of a three-dimensional place. These are powerful - a cadastre records who owns what, a plan records what may be built - but they force the reader to imagine the third dimension. A 3D city model lifts that record into space: it represents the buildings, terrain, transport, water and vegetation of an urban area as three-dimensional objects placed in a shared, georeferenced coordinate frame, so that the model can be viewed from any angle and measured in all three dimensions.
The phrase 'shared coordinate frame' is doing quiet but essential work. A 3D city model is not a single sculpture; it is a set of themed layers - terrain, buildings, transport, vegetation, water bodies, city furniture - each modelled separately but all pinned to the same real-world coordinates, so that a roof sits correctly above its plot, a tree stands beside its road, a drain runs under its street. Because everything is georeferenced, the model can be overlaid with other spatial data and can answer questions about relationships in space: what is next to what, what overshadows what, what drains into what. This is what makes a 3D city model more than a rendering - it is a spatial database you can see.
It is also, always, a selection. A city model does not contain the city; it contains the themes someone chose to model, at the detail they chose, as of the day the source data was captured. A model built for solar analysis may have beautiful roofs and no interiors; one built for flooding may have superb terrain and crude buildings. This is not a flaw to be apologised for - it is the first principle of honest modelling, carried from Lesson 0.1: a model is a purposeful simplification built to answer particular questions. Before you trust any 3D city model, ask what it was built for, what it leaves out, and how old its data is. The temptation to treat a convincing 3D view as 'the city' is exactly the false confidence this course warns against; a model can be incomplete, stale or wrong, and a pretty model most of all.
What CityGML adds: meaning, not just shape
If a bare 3D model is geometry that happens to look like a city, CityGML is the standard that turns that geometry into a city the computer can understand. CityGML is an open data model and exchange format for storing and sharing 3D city models, and its defining idea is semantics: it represents the urban world not as anonymous surfaces but as a structured set of real-world object classes - Building, Road, WaterBody, Vegetation, Bridge, Tunnel, CityFurniture, Terrain - each with a defined meaning, its own attributes and defined relationships to the others.
Consider a single building. In a purely geometric model it is a cluster of triangles. In CityGML it is a Building object, and that building can be decomposed into semantically labelled parts: a RoofSurface, WallSurfaces, a GroundSurface, and at finer detail the Windows and Doors set into those walls. Each object carries attributes - a function (residential, commercial, civic), a measured height, a year of construction, a storey count, a roof type - and each attribute is a fact the model can be queried on. Geometry tells you the shape of the roof; semantics tells you that it is a roof, which way it faces, what it is made of, and which building it belongs to.
That distinction is the whole point, and we devote Lesson 2.3 to it, but feel its force now. Because CityGML objects know what they are, you can ask the model questions no bare mesh can answer: every south-facing roof above a certain area (for solar suitability), every building over a certain height within a flood zone, every residential block within 300 metres of a proposed metro exit. You can attach live data to the right objects - a temperature feed to a building, a count to a road - and you can run simulation on meaningful entities rather than undifferentiated surfaces. This is precisely why a semantic model, not a bare mesh, is the foundation of a twin: a twin has to reason, query and simulate, and you can only reason about things the model knows are things. CityGML gave cities a common, open language for that meaning - though, honestly, a CityGML file is only as truthful as the data poured into it, and an attribute left blank or entered wrong is a fact the twin will happily get wrong.
Mesh: 'here is a shape.' Semantic model: 'here is a ROOF, facing south, 60 sq m, on building 4471.' Only the second can be queried.
The OGC and why an open standard matters
CityGML did not appear from nowhere, and understanding where it sits explains why it matters. It is a standard of the Open Geospatial Consortium (OGC) - an international, not-for-profit body whose members (government agencies, companies, universities) agree on open standards so that geospatial data and software from different sources can work together. CityGML is implemented as an application schema of the Geography Markup Language, which is itself an OGC standard; in plain terms, it is an openly published, vendor-neutral specification for what a semantic 3D city model should contain and how it should be written down.
Why does 'open' and 'standard' matter so much here? Because a city model is a long-lived, shared public asset, built at great cost from many sources and meant to outlast any one piece of software or any one supplier. If a city's model lives only in a proprietary format that one vendor controls, the city is locked in: it cannot easily move the data, combine it with a neighbour's model, feed it to a new simulation tool, or guarantee it will still be readable in twenty years. An open standard is insurance against that lock-in and the foundation of interoperability - the ability of different systems to exchange and make use of the same data. It lets a survey department, a planning authority, a university and a simulation vendor all speak about the same building and mean the same thing.
CityGML is not the only player, and honesty requires naming the landscape rather than selling one format. Other relevant OGC and industry standards sit alongside it: 3D Tiles and the indexed i3s format are geared to streaming massive models to the web (Module 5); IFC, the open BIM standard, describes individual buildings in construction-grade detail (Lesson 2.3); and glTF is common for visual geometry. Real city programmes usually juggle several, converting between them, each with strengths and losses in translation. The lesson for a designer is not to memorise formats but to grasp the principle: insist that a city's model rests on open, documented standards you could walk away with, because the alternative quietly hands control of a public asset - and of the twin built on it - to whoever owns the file format. Which standards are authoritative for official data remains a matter for the data custodians and the relevant authorities, not a vendor's claim.
What a city model is good for - and where it stops
A semantic 3D city model, built on an open standard, is genuinely useful long before any live data arrives - and seeing that clearly keeps the hype in check. As a static but semantically rich model it already supports a great deal: visualising proposals in real context, measuring heights and distances, analysing sunlight and shadow and sightlines, estimating roof area for solar, running early flood or wind studies, checking a design against planning envelopes, and giving citizens a shared 3D picture to react to. Much of what city-twin platforms demonstrate is, in truth, exactly this: a good semantic model with analysis run on it. That is valuable work - but it is important to name it honestly, because a static model with a dashboard is not yet a twin. It becomes a twin only when live data keeps it current and simulation feeds back into decisions, as Module 0 insisted and Module 3 will build.
It is equally important to be clear-eyed about where the model stops. First, coverage and currency: a model captures what was surveyed when it was surveyed, so new construction, demolitions and changes drift it out of date the moment it is made (Lesson 2.4 tackles this). Second, the informal city: in India and much of the world, a large part of the real city - informal settlements, unauthorised construction, the street-level economy - is poorly represented in the formal data a model is built from, so the model can quietly render invisible the very places and people most in need of attention. A model is a map of what its makers chose and were able to capture, and its silences are not neutral. Third, authority: a working city model is not the legal record. Ownership boundaries, statutory infrastructure data and survey-grade positions come from the official custodians - in India, bodies such as the Survey of India and the relevant authorities - not from a twin's convenient working layers, and binding decisions must rest there.
So hold both halves together. A 3D city model, made semantic by a standard like CityGML, is the indispensable foundation of an urban digital twin and a powerful tool in its own right. It is also a selective, possibly stale, possibly biased simplification whose authority is limited and whose gaps have consequences. The skill this module builds is to use the foundation well while never mistaking it for the city.
A model is useful AND partial. It shows what was surveyed, when, of the themes someone chose - and is silent about the rest. Read the silences.
CityGML (OGC standard)
Open data model and format for semantic 3D city models
Models the city as meaningful objects (Building, Road, Vegetation) with attributes and relationships, not bare geometry. An OGC standard; versions and conformance are defined by OGC, not a vendor. Lessons 2.2, 2.3.
Open Geospatial Consortium (OGC)
The body that publishes open geospatial standards
Open, documented, vendor-neutral standards protect a public asset from lock-in and enable interoperability. Treat which standards are authoritative as a matter for the data custodians and authorities. Module 5.
Official / survey / cadastral data
The authoritative record of boundaries and positions
A working city model is not the legal record. Boundaries, survey-grade positions and statutory infrastructure data come from the official custodians (incl. Survey of India) and surveyors. Lesson 2.4, Module 3.
Purposeful-simplification test
What the model covers, at what detail, as of when
Before trusting any 3D city model, ask what it was built for, what it omits (often the informal city), and how current its data is. A model can be incomplete, stale or biased. Lessons 0.1, 2.4, 9.2.
Workshop - read a 3D city model as a semantic asset, not scenery
The core skill of this lesson is to look past the pretty 3D view and judge what a city model actually is: geometric or semantic, open or locked-in, current or stale, whole or selective. You will apply that read to a real example.
A 3D city model you can read about or open in a browser, and a notebook. No modelling software needed - this is about seeing what kind of model it is and asking what it leaves out.
Goal: a critical read of a real 3D city model and the standard behind it Inputs: a real 3D city model you can read about or open (an open city model, a smart-city portal, or your own city's 3D map) + this lesson + a notebook Time: ~40 minutes
- 1Find a model: pick a 3D city model you can read about or explore (an open-data city model, a national 3D building dataset, or a city's 3D web map). Note who made it and what it claims to offer.
- 2Geometric or semantic: look for evidence that objects are more than shapes - can you click a building and see attributes (function, height, roof type)? Are buildings, roads, vegetation modelled as distinct classes? Judge: bare mesh, or a semantic model (CityGML-style)?
- 3Find the standard: what format or standard is it in (CityGML, 3D Tiles, IFC, a proprietary format)? Is it open and documented, or vendor-controlled? What would it take for the city to walk away with the data?
- 4Read the selection: what themes does it include and omit? What is its stated or likely purpose? How current is it, and would it capture informal or recent construction in your context?
- 5Write a one-paragraph verdict: is this a twin-ready semantic foundation or handsome scenery, how portable is it, and one thing its makers chose NOT to model - flagged as critical reasoning, not a technical audit.
You’ll walk away with
A one-page read of a real 3D city model: semantic-versus-geometric judgement, the standard and its openness, what it covers and omits, and one silence you noticed. Keep it; the data and platform modules build on it.
Three altitudes on the same idea
Read the band that fits you — or all three.
The city's 3D model is the context your project will be judged in - and increasingly the model your proposal must plug into. Understand the difference between a bare geometric model and a semantic one built on CityGML, because it decides what the model (and any twin on it) can actually do with your building: place it in real surroundings, test its shadow and sightlines, check it against height envelopes, and let authorities and neighbours see it in context. When you contribute your project into a city model, you are adding semantic objects with attributes, not just shapes - so the quality of your metadata matters. Insist on open, documented standards so the public asset stays portable. Defer the authoritative boundaries, survey-grade positions and statutory data to the official custodians and the authorities; own the design reasoning and the honest reading of what the model covers and omits.
The city model is the outermost shell of a nested set of models that reaches down to the room you are designing. The same idea that makes CityGML powerful - geometry organised into meaningful, attributed objects - is exactly what BIM and IFC do at building and interior scale (Lesson 2.3). A building model rich in semantic objects (spaces, walls, openings, systems) can nest into a district and city model, and that is how interior-scale data connects upward. Grasp that a 'level of detail' exists (Lesson 2.2): the city twin rarely needs your interiors, and feeding fine interior detail and occupancy data upward raises real privacy duties in occupied space. Your domain is the humane, well-resolved interior; coordinate binding building-systems and data-handling choices with the engineers and the law, and treat the city model as shared context, not a place to leak private detail.
This is the most foundational idea in the course after the definition of a twin: a city model is only twin-ready when its geometry carries meaning. Learn to tell a semantic city model (CityGML - buildings, roads, trees as attributed objects) from a pretty mesh, because almost everything later - attaching live data, querying, simulating - depends on it. Learn what the OGC is and why open standards protect a public asset from vendor lock-in. And carry the critical habit: every model is a purposeful, selective simplification, captured at a moment, often blind to the informal city. You are not expected to build a CityGML model; you are expected to understand what it is, read what it covers and omits, and ask who the model serves and who it makes invisible. That literacy - technical and critical at once - is a distinctive, future-facing thread for your portfolio.
“A 3D city model is a 3D city model - if a city has built a detailed, good-looking 3D model that you can fly around, it has what it needs for a digital twin. The format is just a technical detail for the IT team; what matters is that the geometry looks right.”
Do it yourself
No tools needed - reason it through.
- 1In one sentence each, what is a 3D city model, and what does CityGML add to a bare 3D model?
- 2Give two questions a semantic city model can answer that a pile of triangles cannot, and say why.
- 3Why does it matter that CityGML is an open OGC standard rather than a proprietary format?
- 4Name three themes (object classes) a CityGML model typically separates, and one attribute each might carry.
- 5Why is even a semantic 3D city model still a 'purposeful simplification', and what might it render invisible in an Indian city?
The one line to carry out
Peer-reviewed journals & authoritative standards
- 013D city model — Wikipedia — 3D city model, 2026.
- 02CityGML — Wikipedia — CityGML, 2026.
- 03Open Geospatial Consortium — Wikipedia — Open Geospatial Consortium, 2026.
- 04Geographic information system — Wikipedia — Geographic information system, 2026.
- 05Building information modeling — Wikipedia — Building information modeling, 2026.
A semantic model can be coarse or exquisitely detailed, and matching that detail to the question is a discipline in itself. Next we climb the CityGML ladder of detail - LOD1 to LOD4 - and learn why more detail is often the wrong answer.
The author
Amogh N P
Architect, interior designer, and creative polymath. Studio Matrx began in his notebooks — his vision of design made honest, useful, and open to everyone. Its Academy is written and taught in his memory, and free, forever.
More about Amogh →