Bucharest Solar Study Back to evidence and source records

docs/inventory.md Original Markdown

Bucharest building inventory

The adopted inventory contains 174,295 buildings with 43.194 km² of summed projected roof area. The six sector polygons partition the 239.037 km² municipality with zero measured overlap or gap. The 1 km obstacle scene includes 228,694 geometries, including 48,811 outline geometries outside the city. See the machine-readable sector totals and source manifest. Sector coverage · Source manifest

Reproduction

Run from the repository root with the locked Python environment. The first command acquires or verifies the pinned OSM and Overture caches. Prepare the local GloBFP extract with the ancillary commands before building the inventory. Ancillary input reproduction

sh scripts/fetch_building_inputs.sh
.venv/bin/python scripts/extract_osm.py
.venv/bin/python scripts/build_inventory.py --globfp data/processed/inventory/globfp.parquet
.venv/bin/python scripts/plot_inventory.py

Use --output <directory> on the inventory build for an isolated rerun. Omitting --globfp yields the two-outline-source inventory with reported, floor-derived, linked-part and imputed heights. If Overture is inaccessible, use --osm-only to run from the pinned Geofabrik snapshot. Keep original release files and the bounded Overture extract in data/raw/. Public catalog retention can remove dated releases over time. Acquisition and stage logs are in logs/inventory-*.log.

Footprints and sector allocation

The pipeline reads original ways and multipolygon relations through pyosmium and retains their IDs and tags. The Overture subset preserves GERS IDs, parent links, nested sources records and original attributes. It is fetched with bbox predicates over the dated STAC release and three public Parquet objects. The WGS84 acquisition box includes the full study and obstacle area. The inventory and audits use Stereo 70, EPSG:3844. Geofabrik source · Overture release catalog

Polygon repair preserves valid areas and holes. The pipeline removes exact normalized-footprint duplicates within a source and retains an audit layer with the winning identifier. OSM relations take priority over ways when their normalized geometries duplicate. A footprint belongs to the city if its interior representative point is in the municipality or at least half of its area overlaps the municipality, with nonzero intersection in a sector. The sector with the largest footprint intersection wins, with lower sector number resolving a tie. Crossing footprints retain their entire geometry and an overlap flag. Building nodes, unusable footprint polygons and explicitly underground records are recorded in the exclusions layer. Excluded geometry records · Exact duplicates

Overture supplies the primary outlines. One-to-one reconciliation ranks a shared original OSM ID with at least 25% of the OSM footprint covered before other pairs with footprint intersection-over-union of at least 0.50. The next sort keys are high IoU and stable identifiers. An unmatched OSM outline supplements the inventory when it has no declared Overture source-ID conflict and the sum of its Overture overlaps is at most 10% of its area. Unresolved overlap records remain available as geospatial evidence. Most matches share OSM lineage, and their closeness measures source agreement. The two feeds and nonmatching records provide limited evidence about omissions. OSM records and dispositions · Pair overlaps

Among adopted outlines, 325 pairs intersect by more than 0.05 m². Fourteen have an IoU above 0.50 and one exceeds 0.90. The sum of pairwise intersections is about 78,775 m², or 0.18% of the summed projected roof area. Separate mapped IDs are retained for potentially stacked or unresolved geometry. The canonical rows flag affected footprints, and the ledger pairs IDs and sectors with areas and IoUs. Canonical overlap ledger

Overture part links take priority when at least 20% of a part overlaps its native parent. Otherwise a spatial link requires at least 75% part containment, choosing the greatest overlap share and then the smaller parent. Orphans remain separate obstacles. The scene subtracts the union of linked part footprints from each parent outline before extrusion. It keeps the individual parts and permits physically distinct stacked volumes. Interior and exterior obstacles share the same height rules and retain their membership status. Building parts · Obstacle scene

Height and roof attributes

Height is the top above local ground, while base_height_m is the part clearance above local ground. Explicit heights have plausible units and ranges checked, including feet and inches. The priority is a usable OSM height tag, an Overture height, a class-specific floor conversion, a matching 3D-GloBFP estimate, a reported linked-part top on an outline with at least 20% part coverage, then a building-class or area prior. The GloBFP join is one-to-one above 0.60 IoU. It identifies the source record and preserves its original estimate and overlap score. A part whose reported top is at or below its clearance is flagged and takes an assumed usable top. Simple 3D Buildings semantics · 3D-GloBFP release

On a common 531-building sample with explicit height tags and both alternatives, the floor conversion had a 2.54 m mean absolute difference and −1.68 m signed mean difference against the tags. GloBFP had 11.79 m and +9.27 m respectively. The floor conversion had the smaller mean absolute difference for apartments and other buildings separately, so it has priority in both groups. The sample uses mapped height tags as the reference and can contain common upstream information. The upper and lower heights are sensitivity inputs. Reported heights vary by 15% or at least 1 m, floor-based heights by 25% or at least 2 m, and GloBFP by 35% or at least 3 m. The class and area priors have explicit low and high assumptions in code. The strong signed difference for the GloBFP comparison limits confidence in its absolute irradiation estimates. Height agreements and sample counts · Paired input values

The roof audit distinguishes tag presence, joint usable tags and geometry screening. OSM roof direction is a downslope true-north bearing. roof:orientation encodes a ridge parallel or perpendicular to the footprint's long side. A simple pyramidal roof needs mapped rise and a suitable outline, with a centered apex and edge bearings taken from the footprint. This rule yields two attribute-complete municipal outlines. One rectangular candidate in sector 4 passed the screen and one irregular outline in sector 1 failed. There are 39 candidate parts across 27 linked parents. Summed projected candidate part fractions of a parent range up to less than 99%, so part facets require area-specific treatment. Roof coverage by sector and shape · Normalized part attributes

Spatial QA and attribution

The coverage figure shows the local share of unmatched Overture buildings and of assumptions in the height model, with unresolved overlapping OSM outlines marked individually. Mapped tree density and height values vary strongly by sector. The tree layer includes 48,759 points in the buffered extent and just one tagged crown diameter. Vegetation polygons provide separate spatial context. Spatial QA figure · Tree inventory · Mapped vegetation

Distribute the derived mapped inventory and embedded mapped geometries under ODbL 1.0 with © OpenStreetMap contributors, Overture Maps Foundation, Esri Community Maps contributors and Microsoft Global ML Building Footprints attribution. The Geofabrik snapshot distributes the OSM data. The 3D-GloBFP height release is CC BY 4.0 and retains its attribution. OSM copyright · Overture attribution · 3D-GloBFP citation and license