Digital Twins and 3D GIS

Digital Twins and 3D GIS

A few years ago I was invited to see a “digital twin” of a city. The presentation room was dark, a wall-sized screen glowed with a gorgeous 3D model of the downtown, and a cheerful project manager flew us over the rooftops. When the lights came back on, I asked a simple question: “What decision has this changed?” There was a long pause. The model was magnificent. It was also, as far as anyone could tell, a very expensive screen saver. A year later, a modest team in a neighboring town showed me something far less impressive: a plain 3D model of their flood-prone district, connected to a handful of river sensors, that told the emergency office which streets would flood in the next two hours and which buildings had basements at risk. It had changed every decision they made during a storm. That one was a real digital twin.

Between those two stories lies the whole subject of this guide. 3D GIS is the technology of modeling and analyzing the world in three dimensions. A digital twin is a much more ambitious idea: a virtual counterpart of a real place or asset, kept alive by data and used to understand, predict and decide. Both are among the most talked-about trends in our field, and both are surrounded by hype. In this guide I’ll explain what they actually are, how they are built, which standards and tools matter, where they deliver real value, and how to tell a useful twin from an expensive model.

This article is part of our trends series. For the AI side of the story, see AI and Machine Learning in GIS. For the sensor side, see Real-Time and IoT Geospatial Data.

Diagram: A digital twin links the physical asset, sensor data, a 3D GIS and BIM platform, analytics and users.
A digital twin links the physical asset, sensor data, a 3D GIS and BIM platform, analytics and users.

Why Three Dimensions?

A flat map is a wonderful abstraction, and for many questions it is enough. But the world is not flat, and some questions can’t be answered without the third dimension.

  • How much sunlight does this roof receive, given the buildings around it?
  • Which windows will have a view of the river after the new tower is built?
  • How deep will the water be in a basement, a tunnel or an underpass?
  • Where do underground pipes cross the new foundation?
  • Which floors of a hospital can be reached by an evacuation route?
  • How will wind and heat move between tall buildings?
  • What is the structure of a forest canopy, and how much biomass does it hold?
  • How does a mineral deposit, or an aquifer, lie below the surface?

Whenever height, depth, volume, shadow or line of sight matters, 3D is not decoration. It is the analysis.

What 3D GIS adds to 2D GIS

  • Geometry with a vertical component: points with elevation, lines and surfaces in space, volumes and solids.
  • Terrain and surface models as the foundation. See Digital Elevation Models (DEM) and Terrain Analysis.
  • Buildings and structures with height, roof shape and, in richer models, interior spaces.
  • Subsurface features: utilities, geology, boreholes.
  • 3D analysis: visibility and shadows, volumes, clearance, solar exposure, and 3D network analysis such as routes inside buildings.
  • Immersive visualization that helps people who find maps abstract to understand proposals.

What Is a Digital Twin?

The term is used loosely, so precision helps. A digital twin is a virtual representation of a real-world object, system or place that is connected to it by data, so that changes in the real world are reflected in the model, and the model can be used to analyze, simulate and inform decisions about the real thing.

Three ingredients are essential:

  1. A model of the real entity, geometric and ideally semantic (it knows what things are, not only what they look like).
  2. A data connection that keeps the model current, from sensors, systems and updates.
  3. A purpose: analysis, simulation, prediction or decision support that makes the twin useful.

A useful ladder of maturity

Many projects called digital twins are earlier on the ladder. Being honest about this prevents disappointment.

  • Digital model: a static 3D representation. No automatic data flow from the real world. Useful for visualization and planning. This is what most “twins” actually are.
  • Digital shadow: the model is updated automatically from the real world, in one direction. It reflects reality, but doesn’t influence it.
  • Digital twin: two-way interaction. The model is fed by real data, and the results of analysis or simulation feed back into decisions or control of the real system.
  • Intelligent or predictive twin: adds simulation, machine learning and optimization to forecast and recommend actions.

None of these levels is “bad”. A good digital model can be exactly what a project needs. The mistake is to label it as something it isn’t, and to pay for features nobody uses.

Digital twin, BIM, GIS and simulation: how they relate

ConceptFocusTypical scaleMain strength
GISLocation, context, spatial analysisRegional to city to siteIntegrating many layers in a geographic frame
BIM (Building Information Modeling)Detailed design and construction of buildings and infrastructureSingle building or facilityRich, precise, object-based models with parts and properties
Simulation modelsPhysical or behavioral processes: flow, traffic, energy, evacuationVariesPredicting what happens under conditions
IoT and sensor platformsLive measurementAssets and networksReal-time state
Digital twinLinking all of the above to a real entity for decisionsCity, network, facility, regionA living, connected, decision-oriented model

A digital twin is not a single product. It is an integration: a geographic frame (GIS), detailed objects (BIM and 3D models), live data (sensors) and analysis (simulation and AI) combined around a purpose.


The Building Blocks of 3D Data

Terrain

The base of almost every 3D scene is a terrain model derived from elevation data: a raster DEM, a triangulated surface or a point cloud. Its resolution and accuracy limit everything built on top.

Point clouds

Billions of 3D points captured by LiDAR (airborne, mobile on vehicles, or terrestrial scanners) or by photogrammetry. Point clouds record reality directly, and can be classified into ground, vegetation, buildings and other classes. They are the raw material for many other products.

Photogrammetric meshes

3D surfaces reconstructed from overlapping photographs, taken from aircraft, drones or the ground. They look photorealistic, which is wonderful for visualization, but they are “dumb” in the sense that they are one continuous surface, not individual buildings with attributes. See Working with Drones (UAV) and GIS.

Building models

  • Extruded footprints: the simplest approach. A 2D building footprint plus a height attribute gives a block model. Cheap and surprisingly useful for shadow, view and density studies.
  • Models with roof shapes: buildings with realistic roofs, generated from LiDAR or surveys.
  • Semantic city models: each building is an object with parts (walls, roofs, floors), attributes and relationships. Standards such as CityGML and CityJSON describe them.
  • BIM models: highly detailed models from design and construction, with every element and system. They are heavy, and designed for building projects, not for whole cities.

Levels of detail

The level of detail (LOD) describes how much of a feature’s geometry is modeled. A common ladder runs from a simple footprint or block (low LOD), through models with roof shapes, to detailed façades and, at the highest level, interiors. Higher detail is not always better. It costs more to produce and maintain, and slows down analysis. Choose the lowest LOD that answers your question.

Subsurface and infrastructure

3D models of utilities, tunnels, foundations and geological layers. They are critical for construction and for avoiding conflicts with buried assets. See GIS in Utilities, Transportation, and Logistics.

Textures, imagery and context

Aerial images draped over terrain, façade photographs and street-level imagery add realism and context.


Standards and Formats

3D data is only useful if systems can exchange it. The main standards and formats:

  • CityGML: an international OGC standard for storing and exchanging semantic 3D city models, describing buildings, roads, vegetation and more, with objects, attributes and relationships. CityJSON is a lighter, JSON-based encoding that is easier for developers.
  • IFC (Industry Foundation Classes): the open standard for BIM data, used throughout architecture, engineering and construction.
  • glTF: a compact, efficient format for transmitting 3D models, widely used on the web and in real-time engines.
  • 3D Tiles: a specification for streaming massive 3D datasets to web and mobile clients, such as photogrammetric meshes, point clouds and building models, in a tiled hierarchy that loads only what is needed. It is the “tiles” idea of web maps extended to 3D. See How to Create a Web Map (Leaflet, Mapbox, OpenLayers) for the 2D equivalent.
  • Indexed 3D Scene Layers (I3S): a format for streaming large 3D content, used in the Esri ecosystem and available as an open specification.
  • LAS, LAZ and COPC: formats for point clouds, with COPC (cloud-optimized point cloud) designed for efficient streaming. See Cloud-Native Geospatial (COG, STAC, Zarr).
  • OBJ, FBX and others from the design and game worlds, often converted for GIS use.
  • OGC web services for 3D, and the evolving OGC API family, which support access to 3D data and tiles.

The practical lesson: choose standards, not proprietary silos, so that your model can move between tools and survive changes of software. See Intro to Web GIS APIs and OGC Standards (WMS, WFS, WMTS) for the logic of open standards.


How 3D Data Is Created

From LiDAR and point clouds

Airborne LiDAR, increasingly available from national programs, gives accurate heights of terrain and of buildings and vegetation. Classify the points, derive a digital terrain model and a digital surface model, and subtract one from the other to get a normalized surface model, which shows the height of objects above the ground. Combined with building footprints, it gives building heights quickly and at scale.

A short example of extracting building heights with Python, using the normalized surface model and the rasterstats library:

import geopandas as gpd
from rasterstats import zonal_stats

buildings = gpd.read_file("buildings.gpkg").to_crs(epsg=32631)     # use the CRS of your raster

stats = zonal_stats(buildings, "ndsm.tif", stats=["percentile_90", "max"], nodata=-9999)
buildings["height_m"] = [s["percentile_90"] for s in stats]
buildings.to_file("buildings_with_height.gpkg", driver="GPKG")

Using a high percentile rather than the maximum reduces the influence of antennas and noise. The raster is assumed to be in meters and to match the CRS of the footprints. See Raster Processing in Python: Rasterio, Xarray, and NDVI from Code and GeoPandas and Shapely: Vector Data in Python.

From photogrammetry

Overlapping aerial, drone or oblique images are processed into dense point clouds, meshes and textured models. A drone can produce a detailed model of a site in a day. Nadir images give terrain and roofs, and oblique images capture façades. See Working with Drones (UAV) and GIS.

From BIM and design models

Architects and engineers produce detailed models of buildings and infrastructure. Importing them into the GIS frame, which means georeferencing them correctly, connects detailed objects with their geographic context. This BIM-GIS integration is a major area of work, and a frequent source of difficulty: different coordinate systems, units, levels of detail and data structures. See Coordinate Reference Systems (CRS) Explained Simply.

From 2D data with height attributes

Extruding footprints by height attributes is the cheapest way to build a city-wide 3D model. A web mapping library can do it in a few lines:

map.addLayer({
  id: 'buildings-3d',
  type: 'fill-extrusion',
  source: 'buildings',               // a GeoJSON or vector tile source with a "height" property
  paint: {
    'fill-extrusion-color': '#b8b8b8',
    'fill-extrusion-height': ['get', 'height'],
    'fill-extrusion-base': 0,
    'fill-extrusion-opacity': 0.85
  }
});

From surveys, sensors and mobile mapping

Vehicles with LiDAR and cameras capture streets, façades and infrastructure. Handheld and terrestrial scanners model interiors and complex structures.

Procedural and AI-assisted modeling

Software can generate plausible 3D buildings from footprints and rules, and machine learning can extract roof shapes and building outlines from imagery. These approaches scale, but their accuracy must be checked. See AI and Machine Learning in GIS.

Crowdsourced data

Open datasets, including building footprints and heights in OpenStreetMap and national open 3D datasets in some countries, offer a free starting point. Check completeness and licenses. See Where to Find Free GIS Data (Complete Source List).


Visualization and Tools

Desktop and enterprise

Web

  • CesiumJS: an open-source library for 3D globes and maps, and a leader in streaming 3D Tiles.
  • MapLibre GL JS and Mapbox GL JS: 3D terrain and extruded buildings within a vector-map framework.
  • deck.gl: large-scale 3D data visualization layers.
  • three.js and similar libraries: general 3D web graphics, used for custom scenes.
  • Viewer products from commercial platforms.

Game engines

Unreal Engine and Unity are used to create highly realistic, interactive scenes, simulations and virtual or augmented reality experiences, with plugins to import geospatial data. They excel at visual quality and interaction, though they require expertise and extra care to preserve coordinate systems and data meaning.

Immersive technologies

Virtual and augmented reality allow stakeholders to walk through a proposed development or to see underground utilities overlaid on the street. They are valuable for communication and design review. They are also expensive, and need a clear purpose.


The Anatomy of a Digital Twin

A working twin typically has these layers.

  1. Data foundation: terrain, buildings, networks and base maps, in a managed, documented geodatabase. See Enterprise GIS & Spatial Databases: PostGIS, Geodatabases, and Server Architecture and Metadata in GIS: Why It Matters and How to Create It.
  2. Semantic model: objects with identity, attributes and relationships, so that a building knows its address, its use and its connections to utilities.
  3. Live data integration: feeds from IoT sensors, traffic and utility systems, weather, and field reports. See Real-Time and IoT Geospatial Data.
  4. Analytics and simulation: flood, traffic, energy, noise, heat, wind, evacuation and other models, driven by the live data.
  5. Visualization and interaction: 2D and 3D views, dashboards, scenario tools. See Story Maps and Interactive Dashboards.
  6. Decision and action: alerts, recommendations, work orders and control actions that return to the real world.
  7. Governance and security: ownership, quality, access, privacy and cybersecurity, plus a plan for keeping the twin current.

If any layer is missing, ask whether the result is still useful. Often it is, as a model or shadow. What matters is the link to a decision.


Use Cases That Deliver Value

Urban planning and design

  • Shadow, sunlight and view analysis for proposed buildings.
  • Density and massing studies, comparing scenarios in 3D.
  • Visual impact assessment: how will a proposal look from key viewpoints? See GIS in Urban Planning.
  • Public engagement: immersive visualization that helps residents understand proposals.

Energy and sustainability

  • Rooftop solar potential, from 3D models and solar radiation analysis.
  • Building energy modeling at neighborhood scale, using building geometry, age and use.
  • Urban heat and ventilation: how building layout affects heat and wind.
  • Retrofit planning at city scale.

Utilities and infrastructure

  • Digital twins of water, power and gas networks, combining asset models and live telemetry for operations, maintenance and planning. See GIS in Utilities, Transportation, and Logistics.
  • Underground conflict detection before excavation.
  • Asset condition monitoring in tunnels, bridges and dams.

Construction and facilities

  • BIM-GIS integration for site context and logistics.
  • Progress monitoring, comparing as-built scans with design models.
  • Facilities management: indoor navigation, space use and maintenance.

Emergency management and resilience

  • Flood simulation at building level, to identify which buildings and basements are at risk.
  • Evacuation planning in complex buildings and districts.
  • Fire and smoke modeling.
  • Training and exercises in realistic virtual environments. See GIS in Disaster Management and Emergency Response.

Telecommunications

  • Line-of-sight analysis for antennas and high-frequency networks, which are sensitive to obstacles, trees and building façades.

Environment and natural resources

Mobility and transport

  • Simulation of traffic, pedestrian flows and public transport, in a 3D urban context.
  • Autonomous vehicle testing in virtual cities.

Heritage


A Worked Example: Rooftop Solar Potential for a Neighborhood

Question: how much solar energy could the rooftops of a neighborhood produce, and which buildings are the best candidates?

  1. Define the purpose and the output: an estimated annual solar irradiation per roof, and a ranked list of suitable buildings, for a municipal energy program.
  2. Gather data: an airborne LiDAR-derived digital surface model at about one meter or finer, building footprints, local climate or irradiation data, and protected building and heritage layers.
  3. Check quality: the DSM’s resolution, vertical accuracy and date, and whether recent buildings and trees are included. See Metadata in GIS: Why It Matters and How to Create It.
  4. Model the surface: use the DSM so that shading from neighboring buildings and trees is captured.
  5. Run a solar radiation analysis: compute irradiation over a year for each cell, taking slope, aspect and shading into account. Both the major GIS platforms and open-source tools provide this analysis.
  6. Summarize by roof: calculate statistics per building footprint, for example, the area of each roof receiving more than a chosen irradiation, and the total.
  7. Filter for suitability: discard small, heavily shaded, very steep or north-facing surfaces, and roofs of protected buildings.
  8. Estimate energy: convert irradiation into potential electricity using assumptions about panel efficiency, system losses and usable roof area. State the assumptions.
  9. Validate: compare with a few buildings that have installed systems and known output, or with an independent tool.
  10. Communicate: a 3D web scene where residents can click a roof and see its potential, and a dashboard of the neighborhood totals. See Story Maps and Interactive Dashboards.
  11. Update: as buildings change, and new installations appear, refresh the model.

The 3D model is not decoration here. It is what makes the analysis possible, since shadows from the surroundings drive the result.


Challenges and Honest Limits

  • Data volume and cost. 3D datasets are huge, and capturing and processing them is expensive. Plan storage, streaming and processing from the start. See Cloud-Native Geospatial (COG, STAC, Zarr).
  • Keeping it current. A twin that was accurate on the day of delivery and never updated is a historical model. Budget for maintenance, and automate updates where possible.
  • Accuracy and LOD mismatches. Combining models of different accuracy, from LiDAR, BIM and photogrammetry, can produce misalignments and false precision. State the accuracy of every component.
  • Semantics and interoperability. A beautiful mesh with no attributes can’t answer questions about buildings. Systems from different vendors may not exchange data cleanly. Standards help, but don’t solve everything.
  • Coordinate systems and vertical datums. Heights above the ellipsoid, above sea level and local building heights can differ by tens of meters. Check them. See Map Projections: How to Choose the Right One.
  • Real-time integration is hard. Connecting sensors, systems and models requires reliable data, security and organizational cooperation.
  • Model validity. Simulations are only as good as their assumptions and calibration. A twin that simulates flooding with the wrong roughness values produces confident nonsense.
  • Hype and unclear purpose. Many projects start with the technology instead of the decision. Ask what decision the twin will change, and for whom.
  • Governance. Who owns the data, who maintains it, who pays and who can see what?
  • Skills. Twins need teams that combine geospatial, 3D, software, data engineering and domain expertise.
  • Performance. Rendering and analyzing large 3D scenes in a browser is demanding, and requires careful design.
  • Sustainability. Large-scale 3D processing and always-on simulations consume energy. Use the simplest model that works.

Privacy, Security and Ethics

A detailed, connected model of a place raises serious issues.

  • Privacy. High-resolution 3D scanning can capture interiors, private gardens and people. Combined with live data, it may reveal where individuals live and move. Apply privacy by design: limit detail, blur or remove sensitive content, aggregate sensor data and follow the law.
  • Security. A twin of critical infrastructure is a map for attackers. Restrict access, secure the data feeds and devices, and plan for cyber incidents.
  • Surveillance risk. Systems that monitor people in a city can be misused. Define the purposes openly, and keep strict limits.
  • Transparency and trust. Explain what the twin contains, how decisions use it and who can challenge them.
  • Equity. Make sure that the benefits do not flow only to well-mapped, well-sensored areas, leaving others invisible.
  • Open data and standards, to avoid lock-in and allow public scrutiny, where safe.

How to Start: A Practical Path

You don’t need a city-scale twin to begin.

  1. Choose one question and one place. A flood-prone street, a campus, a pump station, a neighborhood.
  2. Define the decision that will change, and who will use the result.
  3. Start with a simple 3D model: terrain plus extruded buildings.
  4. Add one live data stream that matters, such as a river gauge or an energy meter.
  5. Add one analysis, such as shadow, flood depth or line of sight.
  6. Test with real users, and refine.
  7. Document data, accuracy and assumptions.
  8. Use open standards, and keep the architecture modular.
  9. Plan maintenance, ownership and security.
  10. Grow only when the first version proves its value.

Common Mistakes

  • Buying a spectacular visualization with no purpose.
  • Calling a static 3D model a digital twin, and paying twin prices.
  • Aiming for the highest LOD everywhere, instead of what the question needs.
  • Ignoring data maintenance, so the twin ages in a year.
  • Neglecting semantics: meshes without attributes.
  • Mixing coordinate systems and vertical datums without checking.
  • Treating simulation output as truth, without calibration and validation.
  • Locking into a single vendor’s format.
  • Overlooking privacy and security until a problem appears.
  • Skipping the users, and building what looks impressive rather than what helps.
  • Underestimating the people and governance needed.
  • Trying to model everything at once.

Trends

  • Better, cheaper capture: more national LiDAR programs, drone and mobile mapping, and satellite-derived 3D data. See Satellite Imagery Sources: Free vs. Paid.
  • AI-based modeling: automated extraction of buildings, roofs and infrastructure from imagery and point clouds. See AI and Machine Learning in GIS.
  • Streaming and cloud-native 3D, making massive models usable in a browser.
  • Convergence of GIS and BIM, with better standards and tools for exchange.
  • Digital twins of networks, buildings, cities and even regions, with growing attention to interoperability.
  • Real-time sensing at scale, through low-cost IoT. See Real-Time and IoT Geospatial Data.
  • Climate and resilience applications, especially flood, heat and energy twins.
  • Immersive interfaces, with augmented and virtual reality for fieldwork and public engagement.
  • Open-source and open-data twins, led by public institutions and research groups.

Final Thoughts

The two twins I described at the start differ in only one respect that matters: the second one was built around a question. Its team knew who would use it, which decision it would change and which data it needed. The model was modest, and the value was real. The first twin had the opposite ordering: a beautiful model looking for a purpose.

If you want to work in this area, start with the fundamentals that every good twin rests on: clean data, correct coordinate systems, honest accuracy statements and clear purpose. Build a small 3D scene of a place you know, add one live data feed and one analysis. If it helps someone decide something, you have built a twin. If it doesn’t, you have at least built a good model, and you have learned what to ask next time.

Where to go next: explore the data streams that bring a twin to life in Real-Time and IoT Geospatial Data, and the infrastructure that makes large 3D and imagery datasets practical in Cloud-Native Geospatial (COG, STAC, Zarr).

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded GISauthority.com to share practical guidance on GIS and spatial technologies.