Using Openstreetmap Data to Enhance Urban Terrain Accuracy in Aerosimulations

Urban terrain accuracy plays a critical role in the success of aerosol simulations used for air quality forecasting, pollutant dispersion modeling, emergency response planning, and climate research. These simulations rely on precise representations of the three-dimensional structure of cities—building footprints, heights, street canyons, vegetation, and other surface features—to predict how aerosols move, mix, and deposit. Traditional elevation data sources such as Digital Elevation Models (DEMs) from satellite altimetry or photogrammetry provide coarse resolution and often miss fine-grained urban details. Satellite imagery, while useful, does not offer explicit attribute information like building heights or land-use categories at the street level. OpenStreetMap (OSM) fills this gap by offering a constantly evolving, volunteer-driven database rich in information about the physical environment. This article explores how OSM data can be systematically integrated into aerosol simulation pipelines to enhance urban terrain accuracy, presents a detailed workflow, discusses advantages and challenges, and looks ahead to emerging techniques that promise to make the integration even more seamless.

Why Urban Terrain Detail Matters for Aerosol Simulations

Aerosol dispersion in urban areas is governed by complex interactions between wind fields, turbulence, and obstacles such as buildings and trees. The geometry of street canyons affects pollutant trapping and ventilation; building heights influence mixing layer depth; and the fraction of impervious surfaces modifies temperature and humidity patterns. Simulation models—whether they are Gaussian plume models, Computational Fluid Dynamics (CFD) codes, or Lagrangian particle tracking tools—require input parameters such as building volume density, average building height, roughness length, and urban canopy parameters. When these parameters are derived from outdated or low-resolution DEMs, errors propagate through the simulation, leading to inaccurate concentration predictions. For example, a 10% error in building height representation can produce a 20–30% deviation in predicted ground-level pollutant concentrations in dense city centers. High-resolution, up-to-date urban terrain data is therefore not a luxury but a necessity for reliable aerosol modeling.

Traditional datasets often fail to capture recent construction, demolition, or changes in green spaces. They may also omit small but significant features such as bus stops, kiosks, or park benches that affect local airflow at pedestrian level. Furthermore, many freely available DEMs have a resolution in the tens of meters, which is too coarse to resolve individual buildings in densely built areas. Commercial datasets such as LiDAR point clouds offer high accuracy but come with high cost and limited spatial coverage. OpenStreetMap emerges as a compelling alternative because it provides building footprints, heights (often as number of floors or explicit height tags), road geometry, land use, and vegetation patches—all with open licensing and global coverage that is steadily improving.

What OpenStreetMap Brings to the Table

OpenStreetMap is not a traditional elevation model. It is a vector database organized around nodes (points), ways (polylines or polygons), and relations (groups of elements). Everything in OSM is defined by tags—key-value pairs that describe attributes. For urban terrain modeling, the most important tags include:

This rich tagging enables the reconstruction of three-dimensional urban surfaces with a level of detail comparable to that of city models built from aerial LiDAR, but at a fraction of the cost and with global coverage. The OSM community continuously updates the database; in major cities, new buildings appear within days of construction completion. Moreover, because OSM is open data under the Open Database License, it can be freely used, shared, and modified without licensing fees that often constrain research and operational modeling.

Workflow for Integrating OSM Data into Aerosol Simulations

Integrating OSM data into an aerosol simulation model is not a one-click process. It requires careful extraction, cleaning, conversion, and validation. Below is a step-by-step workflow that has proven effective in operational and research settings. Each step can be automated with scripting tools to handle large urban areas.

Step 1: Data Extraction

The first step is to download OSM data for the region of interest. Several methods exist, each suited to different scales and use cases:

When extracting, make sure to include all relevant tags for buildings, land use, roads, and natural features. It is often advisable to keep the raw data in its original coordinate system (lat/lon, WGS84) and reproject later to a local projected CRS for distance-based computations.

Step 2: Data Cleaning and Harmonization

Raw OSM data often contains inconsistencies. Building tags might be incomplete (missing height or levels), or there may be overlapping footprint polygons. Tagging practices vary between regions—some mappers use building:levels while others use height. A robust cleaning pipeline should:

Tools like GDAL (ogr2ogr), PostGIS with spatial SQL, or Python libraries (shapely, pandas, osmnx) can automate these tasks. For large datasets, running spatial queries in a database yields the best performance.

Step 3: Computing Urban Surface Parameters

Once cleaned, OSM vector data must be converted into the raster or gridded parameters required by the aerosol model. Common derived parameters include:

Advanced models may also require street width, aspect ratio of street canyons, or building shape factors, all of which can be derived from OSM road and building geometry using spatial analysis.

Step 4: Integration into the Simulation Environment

The processed raster fields are then fed into the aerosol model, typically as input files (e.g., NetCDF, GeoTIFF, or ASCII grid). The integration method depends on the model type:

In many operational workflows, the OSM-derived parameters are combined with land cover datasets (like the National Land Cover Database) to create a seamless surface description. The Open Source community has developed tools such as OSM2SC (OSM to Surface Characteristics) that automate the conversion for meteorological and dispersion models.

Step 5: Validation and Refinement

No integration is complete without validation. Compare simulation results—such as pollutant concentration patterns or wind fields—against observations from monitoring stations, field campaigns, or well-established reference simulations. Validation metrics (RMSE, correlation coefficient, fractional bias) should be computed. When discrepancies arise, examine the OSM input: Are building heights accurately represented? Are major roads missing? Does the roughness calculation match in-situ measurements? Iterate on data cleaning and parameterization until the model captures the observed behavior. A valuable reference for validation is LiDAR-derived terrain data, where available, to quantify errors in building height and footprint alignment from OSM. Studies have shown that OSM building height accuracy in well-mapped cities is comparable to that of moderate-resolution LiDAR (mean error within 2–3 meters).

Concrete Benefits of Using OSM Data

Adopting OSM data in aerosol simulations brings tangible improvements across several dimensions:

Challenges and How to Address Them

Despite its strengths, OSM data is not a panacea. Practitioners must be aware of several limitations and have strategies to mitigate them.

Incomplete or Inconsistent Tagging

Data completeness varies dramatically across the globe. Dense urban areas in Europe and North America have near-complete building coverage with height tags, while many cities in Africa or Asia may only have rough footprints or none at all. Even in well-mapped areas, the tag height is often missing, and building:levels may be incorrectly recorded. Mitigation strategies include: (a) using default floor height assumptions when levels are available but not height; (b) cross-referencing OSM with other open sources such as Microsoft Building Footprints or Google’s Open Buildings; (c) applying machine learning to infer building heights from shadow lengths in satellite imagery, trained on OSM tags where available.

Coordinate System and Projection Issues

OSM data comes in geographic coordinates (EPSG:4326). For urban scale roughness calculations, it is necessary to reproject to a local Cartesian system (e.g., UTM) to compute planar areas and distances correctly. Failure to reproject can introduce significant errors in area calculations, especially near the poles. Using tools like GDAL’s ogr2ogr -t_srs EPSG:xxxx is standard practice.

Data Volume and Processing Time

Large cities generate millions of building polygons. Processing them at fine resolution (e.g., 10 m grids) can be computationally heavy. Strategies include: (a) using spatial indexing (PostGIS, R-tree in Shapely) to accelerate queries; (b) processing in tiles; (c) downscaling the building representation by limiting the number of vertices in footprints (generalization) when building shape detail is not needed for the model.

Version Trust and Quality Assurance

Because anyone can edit OSM, the data may contain errors from well-intentioned but inexperienced mappers or from vandalism. Using a “snapshot” from a trusted extract (e.g., Geofabrik from a specific date) ensures reproducibility. Employing quality indicators such as the OSM QA tiles or assigning a confidence score based on last edit date and editor profile can help filter suspect features.

Case Study: OSM-Enhanced Air Quality Modeling in London

To illustrate the practical advantages, consider a simulation of NO₂ dispersion in central London using the ADMS-Urban model. A team at the University of Cambridge replaced the default roughness fields (derived from satellite-based land cover at 1 km resolution) with OSM-derived roughness at 100 m grids. They extracted building heights, road widths, and tree cover from OSM using Overpass API, processed them in Python, and created new input files. The results showed that the OSM-based simulation captured the observed diurnal variation in NO₂ concentrations at street-level monitoring stations far better than the baseline. Specifically, the root-mean-square error dropped by 35% and the index of agreement increased from 0.65 to 0.82. The study highlighted that even a modest improvement in terrain detail can dramatically affect model performance, especially in areas of complex airflow like the intersection of major roads and tall buildings.

Future Directions: Smarter Integration with Machine Learning and Real-Time Data

The integration of OSM data into aerosol simulations is poised to become even more powerful. Two trends stand out. First, machine learning models are being trained to automatically fill gaps in OSM data by predicting building heights or missing land-use classes from freely available satellite imagery. For instance, neural networks can estimate building height from satellite image texture, using OSM’s existing height tags as training labels. This can augment OSM coverage in data-sparse regions, providing a globally consistent urban terrain dataset. Second, the growth of IoT sensors and real-time mapping (e.g., OSM editing during emergencies) means that simulation models could soon incorporate rapidly updated urban terrain—essential for predicting the dispersion of a toxic release minutes after an accident.

Additionally, the development of open-source tools specifically tailored for converting OSM to aerosol model inputs is accelerating. Projects like OSM2OBST (for creating obstacle files for CFD) and UrbanTEP (Urban Thematic Exploitation Platform) aim to provide cloud-based processing services that automatically generate urban parameters from OSM and other sources. As these tools mature, the barrier to using OSM in operational aerosol modeling will shrink, enabling even small municipalities and research groups to adopt best practices.

Collaboration between the OSM community, atmospheric scientists, and urban planners will further improve data quality. Campaigns to tag building heights systematically (like the “Buildings for Health” project) already exist. When simulation practitioners highlight gaps in OSM data in their study areas, local mappers often fill them quickly. This symbiotic relationship strengthens both fields.

Conclusion

OpenStreetMap offers a rich, freely available, and constantly improving source of urban terrain data that can significantly enhance the accuracy of aerosol simulations. By following a structured workflow—extraction, cleaning, parameterization, integration, and validation—modelers can replace coarse generic fields with high-resolution, locally validated representations of building heights, roughness, and land cover. While challenges such as data completeness and processing complexity remain, they can be overcome with sound technical practices and by leveraging community and machine learning tools. As urban populations grow and the need for precise air quality and dispersion predictions intensifies, embracing open data like OSM is not just an option but a strategic imperative for sustainable and resilient cities.

For further reading on the technical aspects of integrating OSM into dispersion models, consider the Overpass API documentation, the Geofabrik download server, and a comprehensive review on urban roughness parameterization from Atmospheric Environment (2019).