This document summarizes the potential uses of OpenStreetMap data and explores how complete and accurate it is for various purposes. It provides examples of simple visualizations of OSM data on pub density and retail locations. It also describes processes for deriving new data layers from OSM, such as land use polygons and gridded points of interest, and compares OSM to other data sources.
1. Exploring theExploring the
Potential ofPotential of
OpenStreetMap DataOpenStreetMap Data
JerryJerry CloughClough
SK53 on OpenStreetMap
@SK53onOSM
SK53.osm@gmail.com
Maps Matter Blog : www.sk53-osm.blogspot.com
2.
3. OSM (still) in data collection phase
Sep-12 Mar-13 Sep-13 Mar-14 Sep-14 Mar-15
0%
20%
40%
60%
80%
100%
120% Post Boxes Mapped by City on OSM
percentage of current total Pittsburgh
Zurich
Karlsruhe
Krakow
Tallinn
Nantes
Salamanca
Nottingham
Aug-12 Aug-14
0
200
400
600
800
1000
1200
1400
1600
0
20
40
60
80
100
120
140
160
180
200
bookies
NG restaurants
Sep-12 Feb-13 Jul-13 Dec-13 May-14 Oct-14 Mar-15
0%
20%
40%
60%
80%
100%
120%
Restaurants by City on OSM
San Francisco
Pittsburgh
St Louis
Seattle
Oklahoma City
Denver
Zurich
Karlsruhe
Munich
Krakow
Tallinn
Nantes
Salamanca
Nottingham
4. Themes
● How complete is X on OSM?
● Where are the gaps in X?
● Is OSM data usable?
● If so, what's involved?
● Can further information be derived?
5. ToolkitToolkit
● OSM Extracts from Geofabrik
● Overpass
● taginfo & umap
● osmconvert & osmfilter
● osm2pgsql & osmosis
● PostgreSQL
● QGIS
● R
● Possibles
– Routing Packages: graphhopper,
OpenTripPlanner
– RapidMiner
DataData
● Data in PostGIS:
– Static data for GB using
osm2pgsql
● Lose interconnectedness
● Avoid issues in creating
polygons
– Pre-filtered topic-based data
sets
– Limited use of (osmosis)
snapshot schema
● Common processes:
– Geodata » Graph » Geodata
– Gridding of data
6. Looking at the DataLooking at the Data
Counts, Visualisations, ComparisonCounts, Visualisations, Comparison
19. Deriving Data : Landuse PolygonsDeriving Data : Landuse Polygons
●
●
20. Gridding PolygonsGridding Polygons
• Intersection of all
features on 1km grid
– Reduce polygon size
– Performance
– Avoid joining on
geometries (use key
for grid cell)
21. PostGIS ProcessingPostGIS Processing
OSM
Polygons
OSM
Lines
Painter's
Algorithm
Rules
Clipped
Polygons
Clipped
Lines
Cleaned &
Clipped
Polygons
UA Shape
Polygons
Clean Geometry
Gridded UA
Classes
Filter on Tags & Grid
Gridded &
Buffered
UA Classes
Tag Filter, Grid & Buffer
Clip to Area
Clip to Area
Piecewise Union Union Step 1
Union
Union Step 2
Merge
Class Gridded
Polygons
Merge
Grid
Gridded UA
Polygons
Union
Clipping areas
by UA Class
ClippingRegion
Final
Polygons
Compare
UA/OSM
Union/Intersect/
Difference
24. SummarySummary
● Potential future use of OSM data can be tested
by judicious choice of data sets.
● Evaluation of suitability of OSM data for a given
purpose solely using internal criteria is still
hard.
● Deriving rather than consuming data is often
(technically) involved.
● It can be fun in its own right!