Automated edits/Wizah

From OpenStreetMap Wiki
Jump to navigation Jump to search

Building heights for Jakobstad / Pietarsaari from NLS Finland LiDAR

Who: Jukka Hellén, OSM user Wizah. Edits are made from this account.

Status: proposed - discussion: (link to the Community Forum thread)

Motivation

Of the ~15,500 buildings mapped in Jakobstad municipality, 9 carry a height. Heights make the buildings usable for 3D rendering and for shade/solar analysis. NLS Finland publishes nationwide LiDAR that measures every roof, so the height of most buildings can be derived consistently rather than guessed.

Data sources

  • NLS Finland (Maanmittauslaitos) airborne laser scanning, flown 13-14 July 2021, ~0.5 points/m², CC BY 4.0.
  • NLS Finland 2 m elevation model (korkeusmalli 2 m), bare earth, CC BY 4.0.
  • NLS is listed on Contributors#National Land Survey of Finland; NLS has stated it sees no conflict between OSM's use and its licence.

No geometry is imported. Only tags are added to existing buildings.

Algorithm

  1. All building=* ways and multipolygon relations in the municipality are fetched from Overpass, with version and history.
  2. A 1 m digital surface model is built from the LiDAR points (top surface incl. roofs).
  3. Mapped outlines are offset from the LiDAR by 0-9 m depending on area (different imagery used by different mappers). An offset is fitted per 250 m cell and refined per building within ±2 m, by maximising roof inside the outline minus tall surface in a ring just outside it. The offset only moves where the LiDAR is read; no geometry is changed.
  4. Ground level = lowest value of the 2 m elevation model at the building's vertices and interior point.
  5. Top of roof = 95th percentile of surface height inside the outline (so chimneys and antennas are excluded, per Key:roof:height).
  6. Eave (buildings ≥ 40 m²) = 25th percentile of a band 0.3-1.8 m inside the outline.
  7. Tags, rounded to 0.5 m (about the method's uncertainty):
    • height = top of roof - ground
    • roof:height = top - eave, only when ≥ 1 m (clearly pitched roof)
    • roof:shape=flat, only when top - eave < 0.5 m
    • source:height=Maanmittauslaitos laserkeilausaineisto 2021
No other roof shape is claimed; gabled/hipped/etc. cannot be told apart at this point density.

What is and is not changed

  • Buildings without height/building:height: tags added.
  • Buildings whose current height was set by Wizah (my own earlier estimates, verified from object history): height replaced.
  • Buildings whose height was set by anyone else: not touched (listed for my manual review only).
  • Existing roof:shape / roof:height: never changed.
  • Buildings modelled with building:part: not touched - a single outline height would sit over someone's detailed Simple 3D Buildings work.
  • Skipped entirely, left without height: outline does not match the LiDAR (demolished, built after July 2021, or misdrawn), towers/spires/tree-covered roofs (top - eave > 8 m), implausible values, too few LiDAR points, outside LiDAR coverage. About 1,500 buildings.

Execution

  • Pilot: one 1 km square around the market square (~275 buildings) first, then pause for feedback.
  • Then ~120 changesets, each one 1 km square with at most 400 buildings.
  • Each batch is fetched fresh from OSM immediately before editing; any building edited since the analysis is left out.
  • Each batch is opened in JOSM and looked over against imagery before upload.
  • Changeset tags: comment=Add building heights from NLS Finland LiDAR (Jakobstad), see https://wiki.openstreetmap.org/wiki/Automated_edits/Wizah, source=Maanmittauslaitos laserkeilausaineisto 2021; Maanmittauslaitos korkeusmalli 2 m, mechanical=yes.
  • May be repeated later for buildings whose outlines have been fixed, under the same rules.

Opting out

Comment on the forum thread, message Wizah, or email. Any area or building can be excluded, and any changeset reverted.