San Francisco Building Height Import
Annotating existing OSM buildings with LIDAR heights - Read the wiki page
Building footprints for San Francisco exist in OSM thanks to the Mapbox Data Team. SFdata.gov hosts a CC0-licensed building dataset derived from LIDAR that includes accurate height observations. We're annotating each building with a height
tag.
If you have questions, post on the wiki Talk page or on GitHub issues.
Buildings - review the automatically added height
tags
San Francisco Building Height Import #sfbuildingheights https://wiki.openstreetmap.org/wiki/San_Francisco_Building_Height_Import
San Francisco Enterprise Geographic Information Systems Program (SFGIS) Building Footprints, 2016. https://sfgis-svc.sfgov.org/sfgis/San_Francisco_Bldg_withZ_20161028.zip
- Please make a new account on the OSM website for the import. If your username is
brandon
you should make an account calledbrandon_sfimport
. and post it here. If you have questions, post on GitHub issues. Join our Gitter channel and say hihi. - JOSM Setup
- Download JOSM. Enable Remote Remote Control in JOSM's Preferences > Remote Control , the second to last tab.
- Add the hillshade imagery : menu Tab Imagery > Add TMS entry...
tms:https://s3-us-west-2.amazonaws.com/openmassing/sf_lidar/{z}/{x}/{y}.png
- QGIS Setup
- Download QGIS . Windows and Linux should have binary packages. For macOS, you can install via Homebrew or as a binary+Kyngchaos frameworks. If you need help, ask on Gitter.
- Download the two raster files. Building Layer and Hillshade.
- Open lidar_style.qgs. Put this in the same directory as the two raster files.
- Now you can use the "Identify Features" tool while the
height
layer is selected to identify the height at any pixel. - I would also recommend installing the QuickMapServices plugin to overlay OpenStreetMap. This will make the map easier to orient.
- Select a task and choose Start mapping - it's best to choose an area you're familiar with.
- Open JOSM, and then in the Task Manager, under "Extra Instructions", click the link to load the changeset into JOSM. JOSM will now have an open changeset of buildings you'll be adding height tags to.
- In the Task Manager, click the link to open the Mapillary / OSM comparison tool. Use this street imagery to carefully review each building you're tagging. If you're unsure about a tag, you can remove it - It is very important that you only remove the tag from the way, and not delete the entire building!
- Add the Map Style : buildingheights.css. It's a panel in the right sidebar. Make sure it is activated.
- Inspect each building and ensure that its OSM footprint aligns with the LIDAR shape.
- If the LIDAR footprint is obscured by trees, refer to QGIS to find the correct height, and then edit the "height" value in the right editing panel.
- If you want to edit other tags or change building footprints, do that in a separate changeset.
- When you're done, make sure your JOSM is authenticated with your import-specific account. Upload the changeset with the comment:
San Francisco Building Height Import #sfbuildingheights https://wiki.openstreetmap.org/wiki/San_Francisco_Building_Height_Import
Finally, make sure to "Mark task as done" in the Task Manager.
- Claim a "Done" yellow task in the Tasking Manager.
- In the Task Manager, click the link to open the Mapillary / OSM comparison tool. Use this street imagery to carefully review each building you're tagging. Expect to take at least 15 minutes per task reviewing the height tags in the area.
- If you need to make changes, click the link in the Task Manager for loading OSM data. This will load all OSM data in the task's area into JOSM. Make any corrections and then upload it using your import-specific account.
- Finally, mark the task as validated in the Tasking Manager.
Click here to view the Mapillary / OSM comparison tool.
** For adding tags **
Click here to load the changeset into JOSM.
Make sure you retrieve the changeset right before editing. Don't save the .OSM on your local machine - it's created dynamically so will get out of date!
** For validating tags **
Click here to load OSM data in the task into JOSM.