Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Overview
OpenStreetMap (OSM) is a collaborative 'volunteered geographic information' project to create a free editable geographic database of the world. OSM is not an original geographic data source but a repository of registered contributor's inputs from manual surveys, GPS devices, aerial photography, and other free sources. (Read more about OSM at its Wikipedia article.)
This page describes a workflow for acquiring and using OSM data as a shapefile. It is not the only way and suggestions (in the comments box below) for enhancing this page are welcomed.
Acquiring OSM data
The easiest way to incorporate OSM data with ArcGIS is to add the 'OpenStreetMap' basemap layer to ArcMap. This provides a tiled background layer like the one shown on the OSM website that can not be interrogated or differently symbolized. It is normally preferable to acquire data that can be converted to a shapefile.
A recommended free source of OSM data is Geofabrik Downloads. Links to others are available here on the OSM website.
The Geofabrik download page offers extracts of each continent, and links to sub-regional extracts. Most continental extracts are only available in .pbf or .bz2 formats but the the continental pages have sub-regional extracts that are mostly available also as shapefiles. (Conversion of .pbf files to shapefiles is described below.) Geofabrik downloads contain all OSM data except the particular contribution metadata.
Most available Geofabrik extracts have been acquired from OSM within the previous two days. (The download pages document the acquisition date.) This could be critical during a sudden-onset crisis for which contributors make timely updates.
Example Geofabrik download resource options:
Global download page containing extracts and links to continent pages such as:
Central America download page containing .pbf, .bz2, and in most cases shapefile extracts, and links to sub-region pages such as:
Jamaica download page containing .pbf and shapefile extracts
Some locations are not available in sub-regional extracts. For instance, Bermuda is only available as part of the North America extract - and only as a .bpf or .bz2 file.
Using OSM data
Gepfabrik .pbf extracts opened with QGIS deliver 'lines', 'multilinestrings', 'multipolygons', 'other_relations', and 'points' layers. These can be exported to shapefiles with topologically unstructured overlapping features. The 'multipolygons' layer, for instance, has fields like 'aeroway', 'boundary' and 'natural'. Features are tagged in one or more of these fields so 'natural', for instance, can contain features tagged as 'water', 'beach', 'coastline', among others. A water polygon layer could therefore be created from the 'multipolygons' layer of the .pbf file with a filter or definition query for 'natural' = 'water'.
If a Geofabrik extract is available as a shapefiles it may be an easier and and more reliable way of preparing the desired features. In the case of the area shown in the ArcGIS OSM basemap (above) one water polygon feature appears only in the .pbf 'lines' extract - and without any tag.
OpenStreetMap .pbf lines file. The line features marking the lake with an island (clearly visible in the ArcMap basemap rendering) is has no tags in the 'waterway' or any other field.
Outputs/Resources
Text should include: Essential Reading, Additional Readings, Templates. Examples, Tutorials