osm/saint_paul_mn/derived_rasters/Rasters

Presence, distance and density surfaces

Presence of roads, main roads, energy, power lines and buildings; distance to roads; building density. Global 10-arcsecond POGs; the city is about 70 by 40 cells.

Metadata

Licence
ODbL-1.0 (© OpenStreetMap contributors, https://www.openstreetmap.org/copyright)
Source
OpenStreetMap contributors, via the planet GeoParquet of openplanetdata.com (build 2026-10-27), clipped to the ee_r264 region and classified with linneabean.osm (osm_themes.csv, osm_theme_rules.csv).
Description
OpenStreetMap features intersecting the ee_r264 region saint_paul_mn, assigned to one of 47 themes by linneabean.osm's precedence rules (osm_theme_rules.csv). theme_vectors/ holds one GeoPackage per theme, in layers points / lines / polygons / collections with columns theme, class, subclass, is_primary, theme_other, the theme's tag columns and all tags as JSON; a feature with a secondary theme is in both themes' files. The rasters are presence, distance and density products of the themes on the 10-arcsecond pyramid grid over the region's bounding box, in derived_rasters/. product_vectors/ holds the merged single-geometry GeoPackages built from the themes (linneabean.osm.osm_products).
Code
base_data/osm/osm_processing/run_osm_processing.py (linneabean/osm/osm_tasks.py)
File Version Release Size Resolution Variable class Units Earlier versions Metadata
osm_saint_paul_mn_buildings_10sec.tif v1 2026.10.30.1 10.7 MB 10″ (≈0.31 km) categorical 1 where a feature touches the cell, else 0 – yml
osm_saint_paul_mn_buildings_density_r5_10sec.tif v1 2026.10.30.1 39.6 MB 10″ (≈0.31 km) intensive share of cells within the window holding a feature – yml
osm_saint_paul_mn_distance_to_roads_all_m_10sec.tif v1 2026.10.30.1 40.3 MB 10″ (≈0.31 km) covariate metres to the nearest cell with a feature – yml
osm_saint_paul_mn_distance_to_roads_primary_secondary_m_10sec.tif v1 2026.10.30.1 40.3 MB 10″ (≈0.31 km) covariate metres to the nearest cell with a feature – yml
osm_saint_paul_mn_energy_power_lines_10sec.tif v1 2026.10.30.1 10.7 MB 10″ (≈0.31 km) categorical 1 where a feature touches the cell, else 0 – yml
osm_saint_paul_mn_energy_presence_10sec.tif v1 2026.10.30.1 10.7 MB 10″ (≈0.31 km) categorical 1 where a feature touches the cell, else 0 – yml
osm_saint_paul_mn_roads_all_10sec.tif v1 2026.10.30.1 10.7 MB 10″ (≈0.31 km) categorical 1 where a feature touches the cell, else 0 – yml
osm_saint_paul_mn_roads_primary_secondary_10sec.tif v1 2026.10.30.1 10.7 MB 10″ (≈0.31 km) categorical 1 where a feature touches the cell, else 0 – yml

Legend

The classes of osm_saint_paul_mn_buildings_10sec.tif, osm_saint_paul_mn_energy_power_lines_10sec.tif, osm_saint_paul_mn_energy_presence_10sec.tif, osm_saint_paul_mn_roads_all_10sec.tif, osm_saint_paul_mn_roads_primary_secondary_10sec.tif. These rasters were built before the legend was written, so their headers carry no colour table: load the colour map below to see the classes in their colours.

Value Label Name Colour Description
0 absent No feature #ffffff No OpenStreetMap feature of the raster's theme touches the cell (or the cell is outside the region).
1 present Feature present #d7301f At least one OpenStreetMap feature of the raster's theme (buildings, roads, power lines...; see the file's description) touches the cell.
QGIS colour map (save as a .txt file; Layer Properties, Symbology, Paletted/Unique values, Load Color Map from File)
# QGIS Generated Color Map Export File
INTERPOLATION:EXACT
0,255,255,255,255,No feature
1,215,48,31,255,Feature present

Colour ramp

For osm_saint_paul_mn_buildings_density_r5_10sec.tif. A proportion: transparent at exactly 0, then opaque from #fae6e4 just above 0 to #d7301f at 1.0.

QGIS colour map (save as a .txt file; Layer Properties, Symbology, Singleband pseudocolor, Load Color Map from File)
# QGIS Generated Color Map Export File
INTERPOLATION:INTERPOLATED
0,250,230,228,0,0
1e-06,250,230,228,255,1e-06
1,215,48,31,255,1

Colour ramp

For osm_saint_paul_mn_distance_to_roads_all_m_10sec.tif, osm_saint_paul_mn_distance_to_roads_primary_secondary_m_10sec.tif. A measure (measure viridis), each raster with its own two numbers, listed below: opaque throughout, zero included, the ramp running evenly from the raster's first number (the 2nd percentile of its cells) to its second (the 98th). The colour map is that of osm_saint_paul_mn_distance_to_roads_all_m_10sec.tif; every raster's numbers are in the folder's readme.md and in its manifest's color_ramp column.

QGIS colour map (save as a .txt file; Layer Properties, Symbology, Singleband pseudocolor, Load Color Map from File)
# QGIS Generated Color Map Export File
INTERPOLATION:INTERPOLATED
0,68,1,84,255,0
412.5,59,82,139,255,412.5
825,33,145,140,255,825
1237.5,94,201,98,255,1238
1650,253,231,37,255,1650

Processing steps

OpenStreetMap features intersecting the city of Saint Paul, Minnesota, sorted into 47 themes, merged into ten single-geometry products and rasterised on the 10-arcsecond grid, from the openplanetdata.com planet build of 2026-10-27.

How these files are made (base_data/osm/osm_base_data_ingestion.py, a ProjectFlow run file whose tasks live in linneabean/osm/osm_tasks.py; this script is a thin entry point that runs it, and regions whose files exist are skipped):

  1. Region polygon (osm_<region>_region.gpkg). Saint Paul is not an ee_r264 region, so its boundary was looked up in the planet file itself: the polygon tagged boundary=administrative, admin_level=8, name=Saint Paul inside the search box -93.25,44.85,-92.95,45.05. The polygon is written once with its definition (region_source, region_query, search_bbox) and every later step reads its extent from it.
  2. Themes (theme_vectors/). One streaming pass over the planet GeoParquet of openplanetdata.com (build 2026-10-27, openplanetdata.com/planet; the full planet, 204 GB, kept in osm/raw/ and never uploaded), pruned to the row groups that overlap the region, clipped to the polygon. Every feature is classified by the precedence-ordered rules in linneabean/osm/osm_theme_rules.csv into one of 47 themes (linneabean/osm/osm_themes.csv: theme, domain, ISIC rev.4 section) with a class (the matched tag’s value) and a subclass (a refining tag such as admin_level, voltage, cuisine or damage grade). A feature whose other tags match a later rule of a different theme is also written to that secondary theme’s file, so a bakery in a building is in retail and in buildings, flagged by is_primary and theme_other. Features no rule catches land in the theme “other”. Each theme is one GeoPackage with layers points, lines, polygons and collections, the theme’s tag columns and all tags as JSON.
  3. Products (product_vectors/). The themes merged into ten files with one geometry type and one layer each (linneabean/osm/osm_products.py): facilities, buildings, landcover, landcover_mosaic, boundaries, settlements, transport_lines, water_lines, utility_lines, utility_nodes. Polygons become representative points where the product is points (with area_m2), boundary edge ways are dropped in favour of the relation polygons, building survey points are joined onto the footprint they fall in or given an estimated square footprint, and the landcover mosaic resolves overlaps so the smaller feature keeps the ground. Lifecycle state (construction, proposed, disused, …), damage and flood_prone are columns, not categories. Every row keeps osm_type, osm_id and geometry_source.
  4. Rasters (derived_rasters/). Presence of roads, main roads, energy features, power lines and buildings; distance in metres to roads and to main roads; building density in a 5-cell window, burnt on the 10-arcsecond pyramid grid over the region’s bounding box and expanded to global-extent POGs when listed.
  5. Listing. hb.add_directory_to_base_data lists every file in osm_<region>_base_data_manifest.csv with its licence (ODbL-1.0, (c) OpenStreetMap contributors), source, description and variable class, and ends with the publishing dry run.

What is in each theme, tag by tag, is documented in linneabean/osm/osm_themes_readme.md; the thematic structure and the products in linneabean/osm/readme.md. Counts and the tag vocabulary differ by region: a country built from imports and a city mapped by its residents look different, and the residual theme “other” shows what the rules miss.

From the ingestion script that made these files, base_data/osm/saint_paul_mn/osm_saint_paul_mn_base_data_ingestion.py.