SlideShare a Scribd company logo
1 of 47
Download to read offline
AnalysingAnalysing
OpenStreetMap DataOpenStreetMap Data
with QGISwith QGIS
JerryJerry CloughClough
SK53 on OpenStreetMap
@SK53onOSM
SK53.osm@gmail.com
My BackgroundMy Background
● Biologist, Computer Scientist, Management Consultant
Naturalist
● GIS--, DB++
– OLAP platforms since late 1980s
● OSM since Dec 2008
● QGIS since Jan 2011 (1.1 => 2.0)
● Mainly analytical uses
● Interests: landuse, landcover, biotopes, local
government open data, (pubs)
OSM Need to KnowOSM Need to Know
● Open Vector Data
● 3 Geo-primitives
– Node (= point)
– Way (= linestring)
● Closed ways may represent
areas
– Relations
● More complex geothings
– Multipolygons
– Geo-relations
● NO layers
● Volunteer Sourced
– “Wiki map of the
world”
● Free Tagging
– aka Folksonomy
● Variable Coverage
–
Some 'Interesting' Stats for GBSome 'Interesting' Stats for GB
(with apologies to Ordnance Survey)
● Pylons: 58,487 (OSGB: 80,517)
● Post Boxes: 42,742 (93.728)
● Camp sites: 3,192 (8,908)
● Buildings: 1,890,835 (35,397,754)
● Bus Stops: 215,720 (354,099)
● Petrol Stations: (7,702)
● Addresses: 27,341,262 (OSGB);
532,886
● Electricity Poles: 94,199 (183, 987)
● Road length: 522,627 km
(407,532 km)
● 5 post boxes with Edward VIII
cypher
● Only 110 War Memorials
● 847 Fire Hydrants
● 1,378 Real Ale pubs
– 82 with Real Fires
● 4771 Cycle Parking
● 300 Wildlife Hides
● 5,552 Stiles
● 1,774 Canal Locks
● 2 Knitting Shops
Ordnance Survey figures: /www.ordnancesurvey.co.uk/blog/2013/04/10-fascinating-facts-from-
ordnance-survey/
OSM figures (April '13): /taginfo.openstreetmap.org.uk/
How I use QGISHow I use QGIS
● OSM data => PostGIS DB
● Initial analysis in QGIS
● PostGIS routines for more complex data
manipulation
● R and other tools for stats/segmentation
● Visualisation in QGIS
Case Study 1 : PubsCase Study 1 : Pubs
Pub Density in Great BritainPub Density in Great Britain
Cartograms based on PubsCartograms based on Pubs
Cartograms based on PubsCartograms based on Pubs
Case Study 2:Case Study 2:
Simulating Urban AtlasSimulating Urban Atlas
● 300+ EU cities population >100k
– 119 in April 2010
– 228 in Sept. 2010
● Baseline date 2006-7
● Used 2.5 m imagery
● 5-6 year refresh cycle
● Minimum Map Unit (MMU) 0.25 ha
urban / 1 ha rural
http://sia.eionet.europa.eu/Land Monitoring Core Service/Urban Atlas
Examples of mapping OSM TagsExamples of mapping OSM Tags
to Urban Atlas Categoriesto Urban Atlas Categories
UA
Code
UA Description OSM Tags Comments
14100 Parks, Urban Green Space amenity=graveyard
landuse=cemetery
leisure=park
leisure=village_green
14200 Sports Areas landuse=allotments
landuse=recreation_ground
leisure=golf_course
leisure=pitch
leisure=stadium
20000 Agricultural Land landuse=farm
landuse=farmland
landuse=pasture
landuse=orchard
landuse=vineyard
leisure=nature_reserve
natural=scrub,natural=heath
natural=wetland
natural=rock,natural=scree
Additional OSM tags are also valid for
this code (e.g., natural=glacier)
30000 Woods & Forest natural=wood
landuse=forest
50000 Water landuse=reservoir
waterway=riverbank
natural=water
Painter’s Algorithm in QGISPainter’s Algorithm in QGIS
Case Study 3:Case Study 3:
Retail in OSMRetail in OSM
Retail Geo-dataRetail Geo-data

DriversDrivers
–Personal interest
• Used to consult to large retail chains & FMCG firm
–Article in Directions about Geolytix
• Featured Nottingham, my main mapping location
– Availability of Food Hygiene Open Data

QuestionsQuestions
– How difficult was it to systematically get retail landuse and retail
sites into OSM?
– Was OSM data good enough for segmentation of landuse?
Source: Geolytix in Directions Magazine
FHRS 1
(local) Government Open Data
• Addresses
• Partial geolocation
– postcode
• Business Type
– Pub/Bar/Nightclub
– Supermarket
– Café/Restaurant
– Other Retail
• Covers at least 50-60% of retail
outlets
• Usually current
– Typical inspection interval 6-12
months
Tracking my ownTracking my own
OSM MappingOSM Mapping
●
Plot premises by postcode centroid
●
OpenLayers plugin for background
●
Track areas visited and added to
OSM in Excel Spreadsheet
●
S/s linked in as layer
●
Update to show places to map
●
Push un-surveyed postcodes out as
a GPX
●
Load GPX on Garmin
Conclusions Nottingham Retail 2
Conclusions Nottingham Retail 3
Classifying Retail
Areas
Case Study 4 : Street LightsCase Study 4 : Street Lights
Street Lights and OSM QualityStreet Lights and OSM Quality
Street Lights and OSM QualityStreet Lights and OSM Quality
Maps for DogsMaps for Dogs
Approaches to using OSM DataApproaches to using OSM Data
● Direct from OSM (API/ XML
files)
– Earlier Plugin (deprecated)
– 2.0 method
– ogr2ogr
● via Postgres DB
– osm2pgsql
– osmosis
– imposm
– osm2postgresql
– osm2pgrouting
● via Shapefiles
– Geofabrik
● Limited number of
layers
● Limited sets of
attributes
– Roll your own
http://wiki.openstreetmap.org/wiki/Osmosis
http://wiki.openstreetmap.org/wiki/Osm2postgresql
http://sourceforge.net/projects/osm2postgresql/
http://download.geofabrik.de/
Postgre-SQL/GIS and osm2pgsqlPostgre-SQL/GIS and osm2pgsql
● osm2pgsql converts osm
data to postgres/postgis
– Slightly lossy
● Relationship between members
of multipolygons
● Road and other network
topologies
– Can choose projection
● default 3087
– Can tweak import rules
● Style files
● LUA
– Fiddly under Windows
● osmconvert & osmfilter
– Very useful tools to preprocess
data for particular purposes
● Filter on OSM tag values
● Convert polygons to centroids
●
ALWAYS USE -k option
– Stores less widely used tags as
an hstore column
– Maximises flexibility
– Throws away coastline by
default (sometimes useful to
keep it)
http://wiki.openstreetmap.org/wiki/Osm2pgsql
http://wiki.openstreetmap.org/wiki/Osmconvert
http://wiki.openstreetmap.org/wiki/Osmfilter
ProblemsProblems
● Polygon Handling
● Generalisation
● Missing data
● Free-form Tagging
The Problem with PolygonsThe Problem with Polygons
• No Area primitive in OSM
• Overlapping polygons
• OSM
– Broken polygons
– Intersecting polygons
– osm2pgsql
• In QGIS
– Render OK
– Geometry Operations fail
• Essential tool:
cleangeometry PostGIS
function (SOGIS)
http://www.sogis1.so.ch/sogis/dl/postgis/cleanGeometry.sql
GeneralisationGeneralisation
• Multiple Ways
– Most objects will be formed
from many OSM ways (e.g,
Thames, M4)
• No simplified data
– Dual carriageways
– Roundabouts and flares
– Built-up areas
– Over noded for many uses
• Fine-grain tagging
• May require elaborate pre-
processing
Tagging IssuesTagging Issues
• Synonymy
– natural=wood
– landuse=forest
• Variable Semantics
– highway=path
– place=hamlet
– highway=trunk
(gets changed every now & then)
• Tagging for the Render
– natural=sand for Golf bunker
– landuse=grass Everywhere
• Semantic Degradation
– Tag with accepted semantics being used for
something else
– landuse=recreation_ground for Ski areas in US
• Odd names
– shop=mall Shopping Centre
Incomplete DataIncomplete Data
Other things I do in QGISOther things I do in QGIS
● Vice County maps using OSGB Open Data
– Plan to investigate Atlas module now
● Distribution Maps of Trees in N. Hemisphere
● Attempts to analyse suburban structure based
on building dates
– Used Portland Oregon data
– Huge Delauney triangulation
ConclusionsConclusions
● QGIS fantastic tool for a wide range of manipulations of
OpenStreetMap data
– Particularly well suited for
● Prototyping & visualisation
● Combining with other Open Data sources
● Recommend use with PostGIS
– Maximises flexibility
– Reduces complexity of potential learning curve for the OSM
toolchain
– Ability to manipulate data in PostGIS may be important
● Be aware of limitations and gotchas of OSM data
Supplementary SlidesSupplementary Slides
● Managing polygons for detailed analysis (Urban
Atlas)
PostGIS 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
Comparison 1
No OSM Data
Residential
Disagreement
Agreement
Nottingham Area
Comparison 2
No OSM Data
Residential
Disagreement
Agreement
Agreement
Supplementary SlidesSupplementary Slides
● Examples of OSM Mapping from Port-au-Prince
January 2010
Analysing OpenStreetMap Data with QGIS
Analysing OpenStreetMap Data with QGIS
Analysing OpenStreetMap Data with QGIS
Analysing OpenStreetMap Data with QGIS
Analysing OpenStreetMap Data with QGIS

More Related Content

What's hot

Sni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaan
Sni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaanSni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaan
Sni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaanArdita Putri Usandy
 
Materi regulasi di desa 2018
Materi regulasi di desa 2018Materi regulasi di desa 2018
Materi regulasi di desa 2018Ardi Susanto
 
Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...
Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...
Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...Penataan Ruang
 
Peraturan Penataan Ruang RDTR
Peraturan Penataan Ruang  RDTRPeraturan Penataan Ruang  RDTR
Peraturan Penataan Ruang RDTRhenny ferniza
 
1 laporan pendahuluan rtdr kp rengasdengklok
1 laporan pendahuluan rtdr kp rengasdengklok1 laporan pendahuluan rtdr kp rengasdengklok
1 laporan pendahuluan rtdr kp rengasdengklokmuhfidzilla
 
Draft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_final
Draft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_finalDraft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_final
Draft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_finalAndon Setyo Wibowo
 
kajian lingkungan hidup strategis
kajian lingkungan hidup strategiskajian lingkungan hidup strategis
kajian lingkungan hidup strategisMaulana Ferdinand
 
Panel viii rakornas 2019 - menteri lhk
Panel viii  rakornas 2019 - menteri lhkPanel viii  rakornas 2019 - menteri lhk
Panel viii rakornas 2019 - menteri lhkJoseph Sitepu
 
Pembentukan Peraturan Desa
Pembentukan Peraturan DesaPembentukan Peraturan Desa
Pembentukan Peraturan DesaArdi Susanto
 
Pelimpahan Wewenang & Hubungan Kerja Kecamatan
Pelimpahan Wewenang & Hubungan Kerja KecamatanPelimpahan Wewenang & Hubungan Kerja Kecamatan
Pelimpahan Wewenang & Hubungan Kerja KecamatanTri Widodo W. UTOMO
 
Pemanfaatan Tata Ruang di Daerah
Pemanfaatan Tata Ruang di DaerahPemanfaatan Tata Ruang di Daerah
Pemanfaatan Tata Ruang di Daerahushfia
 
Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...
Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...
Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...Himpunan Mahasiswa Planologi ITS
 
Rencana Tata Ruang Wilayah Kabupaten Pasuruan
Rencana Tata Ruang Wilayah Kabupaten PasuruanRencana Tata Ruang Wilayah Kabupaten Pasuruan
Rencana Tata Ruang Wilayah Kabupaten PasuruanPenataan Ruang
 
Buku panduan si prodeskel pmd
Buku panduan si prodeskel pmdBuku panduan si prodeskel pmd
Buku panduan si prodeskel pmdMus MN
 
Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...
Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...
Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...Penataan Ruang
 
Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)
Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)
Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)Bagus ardian
 
Rencana Tata Ruang Wilayah Kabupaten Bantul
Rencana Tata Ruang Wilayah Kabupaten BantulRencana Tata Ruang Wilayah Kabupaten Bantul
Rencana Tata Ruang Wilayah Kabupaten BantulPenataan Ruang
 
Paparan Perda Penanganan Permukiman Kumuh Kota Surakarta
Paparan Perda Penanganan Permukiman Kumuh Kota SurakartaPaparan Perda Penanganan Permukiman Kumuh Kota Surakarta
Paparan Perda Penanganan Permukiman Kumuh Kota SurakartaBagus ardian
 
Optimalisasi Kinerja Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...
Optimalisasi Kinerja  Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...Optimalisasi Kinerja  Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...
Optimalisasi Kinerja Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...Dadang Solihin
 

What's hot (20)

Sni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaan
Sni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaanSni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaan
Sni 03 1733-2004 v.2 tata cara perencanaan lingkungan perumahan di perkotaan
 
Materi regulasi di desa 2018
Materi regulasi di desa 2018Materi regulasi di desa 2018
Materi regulasi di desa 2018
 
Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...
Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...
Pedoman Penyusunan Rencana Detail Tata Ruang dan Peraturan Zonasi Kabupaten/K...
 
Peraturan Penataan Ruang RDTR
Peraturan Penataan Ruang  RDTRPeraturan Penataan Ruang  RDTR
Peraturan Penataan Ruang RDTR
 
1 laporan pendahuluan rtdr kp rengasdengklok
1 laporan pendahuluan rtdr kp rengasdengklok1 laporan pendahuluan rtdr kp rengasdengklok
1 laporan pendahuluan rtdr kp rengasdengklok
 
Draft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_final
Draft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_finalDraft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_final
Draft Master Plan RTH Kab. Gresik_P2KH - agustus 2012_final
 
Strategi Pembentukan Daerah Otonom Baru
Strategi Pembentukan Daerah Otonom BaruStrategi Pembentukan Daerah Otonom Baru
Strategi Pembentukan Daerah Otonom Baru
 
kajian lingkungan hidup strategis
kajian lingkungan hidup strategiskajian lingkungan hidup strategis
kajian lingkungan hidup strategis
 
Panel viii rakornas 2019 - menteri lhk
Panel viii  rakornas 2019 - menteri lhkPanel viii  rakornas 2019 - menteri lhk
Panel viii rakornas 2019 - menteri lhk
 
Pembentukan Peraturan Desa
Pembentukan Peraturan DesaPembentukan Peraturan Desa
Pembentukan Peraturan Desa
 
Pelimpahan Wewenang & Hubungan Kerja Kecamatan
Pelimpahan Wewenang & Hubungan Kerja KecamatanPelimpahan Wewenang & Hubungan Kerja Kecamatan
Pelimpahan Wewenang & Hubungan Kerja Kecamatan
 
Pemanfaatan Tata Ruang di Daerah
Pemanfaatan Tata Ruang di DaerahPemanfaatan Tata Ruang di Daerah
Pemanfaatan Tata Ruang di Daerah
 
Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...
Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...
Kebijakan pengembangan wilayah di Indonesia dalam skala nasional, wilayah, da...
 
Rencana Tata Ruang Wilayah Kabupaten Pasuruan
Rencana Tata Ruang Wilayah Kabupaten PasuruanRencana Tata Ruang Wilayah Kabupaten Pasuruan
Rencana Tata Ruang Wilayah Kabupaten Pasuruan
 
Buku panduan si prodeskel pmd
Buku panduan si prodeskel pmdBuku panduan si prodeskel pmd
Buku panduan si prodeskel pmd
 
Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...
Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...
Permen PU Nomor 15 Tahun 2012 tentang Pedoman Penyusunan Rencana Tata Ruang K...
 
Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)
Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)
Buku Saku Pengendalian Perencanaan NUSP2 (Dokumen)
 
Rencana Tata Ruang Wilayah Kabupaten Bantul
Rencana Tata Ruang Wilayah Kabupaten BantulRencana Tata Ruang Wilayah Kabupaten Bantul
Rencana Tata Ruang Wilayah Kabupaten Bantul
 
Paparan Perda Penanganan Permukiman Kumuh Kota Surakarta
Paparan Perda Penanganan Permukiman Kumuh Kota SurakartaPaparan Perda Penanganan Permukiman Kumuh Kota Surakarta
Paparan Perda Penanganan Permukiman Kumuh Kota Surakarta
 
Optimalisasi Kinerja Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...
Optimalisasi Kinerja  Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...Optimalisasi Kinerja  Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...
Optimalisasi Kinerja Perencanaan Pembangunan serta Monev Kinerja Akuntabilit...
 

Similar to Analysing OpenStreetMap Data with QGIS

Two's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UK
Two's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UKTwo's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UK
Two's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UKSK53
 
Two's a Crowd: Jerry Clough @ Open Addresses Symposium
Two's a Crowd: Jerry Clough @ Open Addresses SymposiumTwo's a Crowd: Jerry Clough @ Open Addresses Symposium
Two's a Crowd: Jerry Clough @ Open Addresses SymposiumtheODI
 
GIS for Recorders
GIS for RecordersGIS for Recorders
GIS for RecordersSK53
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptFatima891926
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptsafayetmim1
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptvikramvsu
 
Looking into the past - feature extraction from historic maps using Python, O...
Looking into the past - feature extraction from historic maps using Python, O...Looking into the past - feature extraction from historic maps using Python, O...
Looking into the past - feature extraction from historic maps using Python, O...James Crone
 
Gis capabilities on Big Data Systems
Gis capabilities on Big Data SystemsGis capabilities on Big Data Systems
Gis capabilities on Big Data SystemsAhmad Jawwad
 
Geographic information system
Geographic information systemGeographic information system
Geographic information systemSumanta Das
 
GIS and Map Tiles
GIS and Map TilesGIS and Map Tiles
GIS and Map TilesPetr Pridal
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLSohail Akbar Goheer
 
PIAS 2013-GIS.pptxfskjczjsbchdbfscnnND dHSA
PIAS 2013-GIS.pptxfskjczjsbchdbfscnnND  dHSAPIAS 2013-GIS.pptxfskjczjsbchdbfscnnND  dHSA
PIAS 2013-GIS.pptxfskjczjsbchdbfscnnND dHSAFloridaTLaoaten
 
A Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph AnalyticsA Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph AnalyticsDonald Nguyen
 
Developing Geospatial software with Python, Part 1
Developing Geospatial software with Python, Part 1Developing Geospatial software with Python, Part 1
Developing Geospatial software with Python, Part 1Paolo Corti
 
Using python to analyze spatial data
Using python to analyze spatial dataUsing python to analyze spatial data
Using python to analyze spatial dataKudos S.A.S
 
Giving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS CommunityGiving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS CommunityMongoDB
 

Similar to Analysing OpenStreetMap Data with QGIS (20)

Two's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UK
Two's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UKTwo's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UK
Two's a Crowd: Crowdsourcing Addresses for OpenStreetMap in the UK
 
Two's a Crowd: Jerry Clough @ Open Addresses Symposium
Two's a Crowd: Jerry Clough @ Open Addresses SymposiumTwo's a Crowd: Jerry Clough @ Open Addresses Symposium
Two's a Crowd: Jerry Clough @ Open Addresses Symposium
 
GIS for Recorders
GIS for RecordersGIS for Recorders
GIS for Recorders
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
 
Open geo data - technical issue
Open geo data  - technical issueOpen geo data  - technical issue
Open geo data - technical issue
 
Looking into the past - feature extraction from historic maps using Python, O...
Looking into the past - feature extraction from historic maps using Python, O...Looking into the past - feature extraction from historic maps using Python, O...
Looking into the past - feature extraction from historic maps using Python, O...
 
Gis capabilities on Big Data Systems
Gis capabilities on Big Data SystemsGis capabilities on Big Data Systems
Gis capabilities on Big Data Systems
 
Geographic information system
Geographic information systemGeographic information system
Geographic information system
 
GIS and Map Tiles
GIS and Map TilesGIS and Map Tiles
GIS and Map Tiles
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
 
PIAS 2013-GIS.pptxfskjczjsbchdbfscnnND dHSA
PIAS 2013-GIS.pptxfskjczjsbchdbfscnnND  dHSAPIAS 2013-GIS.pptxfskjczjsbchdbfscnnND  dHSA
PIAS 2013-GIS.pptxfskjczjsbchdbfscnnND dHSA
 
A Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph AnalyticsA Lightweight Infrastructure for Graph Analytics
A Lightweight Infrastructure for Graph Analytics
 
Developing Geospatial software with Python, Part 1
Developing Geospatial software with Python, Part 1Developing Geospatial software with Python, Part 1
Developing Geospatial software with Python, Part 1
 
Using python to analyze spatial data
Using python to analyze spatial dataUsing python to analyze spatial data
Using python to analyze spatial data
 
Giving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS CommunityGiving MongoDB a Way to Play with the GIS Community
Giving MongoDB a Way to Play with the GIS Community
 
GIS Data Types
GIS Data TypesGIS Data Types
GIS Data Types
 
Day 6 - PostGIS
Day 6 - PostGISDay 6 - PostGIS
Day 6 - PostGIS
 

More from SK53

Dasineura cf aceris: new to Britain 2016
Dasineura cf aceris: new  to Britain 2016Dasineura cf aceris: new  to Britain 2016
Dasineura cf aceris: new to Britain 2016SK53
 
OpenHistoricMap: overview
OpenHistoricMap: overviewOpenHistoricMap: overview
OpenHistoricMap: overviewSK53
 
Exploring the Potential of OpenStreetMap Data
Exploring the Potential of OpenStreetMap DataExploring the Potential of OpenStreetMap Data
Exploring the Potential of OpenStreetMap DataSK53
 
38 jerry clough_urbanatlas_sk53
38 jerry clough_urbanatlas_sk5338 jerry clough_urbanatlas_sk53
38 jerry clough_urbanatlas_sk53SK53
 
Nottingham hack soc
Nottingham hack socNottingham hack soc
Nottingham hack socSK53
 
Zone de Combat: Woodland on OpenStreetMap
Zone de Combat: Woodland on OpenStreetMapZone de Combat: Woodland on OpenStreetMap
Zone de Combat: Woodland on OpenStreetMapSK53
 
Change is Relative : Persistence in the Urban Environment
Change is Relative : Persistence in the Urban EnvironmentChange is Relative : Persistence in the Urban Environment
Change is Relative : Persistence in the Urban EnvironmentSK53
 
Gone Shopping: detailed retail mapping
Gone Shopping: detailed retail mappingGone Shopping: detailed retail mapping
Gone Shopping: detailed retail mappingSK53
 
Seeing the light
Seeing the lightSeeing the light
Seeing the lightSK53
 
Putting Nottingham on the Map
Putting Nottingham on the MapPutting Nottingham on the Map
Putting Nottingham on the MapSK53
 

More from SK53 (10)

Dasineura cf aceris: new to Britain 2016
Dasineura cf aceris: new  to Britain 2016Dasineura cf aceris: new  to Britain 2016
Dasineura cf aceris: new to Britain 2016
 
OpenHistoricMap: overview
OpenHistoricMap: overviewOpenHistoricMap: overview
OpenHistoricMap: overview
 
Exploring the Potential of OpenStreetMap Data
Exploring the Potential of OpenStreetMap DataExploring the Potential of OpenStreetMap Data
Exploring the Potential of OpenStreetMap Data
 
38 jerry clough_urbanatlas_sk53
38 jerry clough_urbanatlas_sk5338 jerry clough_urbanatlas_sk53
38 jerry clough_urbanatlas_sk53
 
Nottingham hack soc
Nottingham hack socNottingham hack soc
Nottingham hack soc
 
Zone de Combat: Woodland on OpenStreetMap
Zone de Combat: Woodland on OpenStreetMapZone de Combat: Woodland on OpenStreetMap
Zone de Combat: Woodland on OpenStreetMap
 
Change is Relative : Persistence in the Urban Environment
Change is Relative : Persistence in the Urban EnvironmentChange is Relative : Persistence in the Urban Environment
Change is Relative : Persistence in the Urban Environment
 
Gone Shopping: detailed retail mapping
Gone Shopping: detailed retail mappingGone Shopping: detailed retail mapping
Gone Shopping: detailed retail mapping
 
Seeing the light
Seeing the lightSeeing the light
Seeing the light
 
Putting Nottingham on the Map
Putting Nottingham on the MapPutting Nottingham on the Map
Putting Nottingham on the Map
 

Recently uploaded

MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxUnduhUnggah1
 
Business Analytics using Microsoft Excel
Business Analytics using Microsoft ExcelBusiness Analytics using Microsoft Excel
Business Analytics using Microsoft Excelysmaelreyes
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...Amil Baba Dawood bangali
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一F La
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGILLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGIThomas Poetter
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024Susanna-Assunta Sansone
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfchwongval
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 

Recently uploaded (20)

MK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docxMK KOMUNIKASI DATA (TI)komdat komdat.docx
MK KOMUNIKASI DATA (TI)komdat komdat.docx
 
Business Analytics using Microsoft Excel
Business Analytics using Microsoft ExcelBusiness Analytics using Microsoft Excel
Business Analytics using Microsoft Excel
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
NO1 Certified Black Magic Specialist Expert Amil baba in Lahore Islamabad Raw...
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
办理(UWIC毕业证书)英国卡迪夫城市大学毕业证成绩单原版一比一
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGILLMs, LMMs, their Improvement Suggestions and the Path towards AGI
LLMs, LMMs, their Improvement Suggestions and the Path towards AGI
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
 
Multiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdfMultiple time frame trading analysis -brianshannon.pdf
Multiple time frame trading analysis -brianshannon.pdf
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 

Analysing OpenStreetMap Data with QGIS

  • 1. AnalysingAnalysing OpenStreetMap DataOpenStreetMap Data with QGISwith QGIS JerryJerry CloughClough SK53 on OpenStreetMap @SK53onOSM SK53.osm@gmail.com
  • 2. My BackgroundMy Background ● Biologist, Computer Scientist, Management Consultant Naturalist ● GIS--, DB++ – OLAP platforms since late 1980s ● OSM since Dec 2008 ● QGIS since Jan 2011 (1.1 => 2.0) ● Mainly analytical uses ● Interests: landuse, landcover, biotopes, local government open data, (pubs)
  • 3. OSM Need to KnowOSM Need to Know ● Open Vector Data ● 3 Geo-primitives – Node (= point) – Way (= linestring) ● Closed ways may represent areas – Relations ● More complex geothings – Multipolygons – Geo-relations ● NO layers ● Volunteer Sourced – “Wiki map of the world” ● Free Tagging – aka Folksonomy ● Variable Coverage –
  • 4. Some 'Interesting' Stats for GBSome 'Interesting' Stats for GB (with apologies to Ordnance Survey) ● Pylons: 58,487 (OSGB: 80,517) ● Post Boxes: 42,742 (93.728) ● Camp sites: 3,192 (8,908) ● Buildings: 1,890,835 (35,397,754) ● Bus Stops: 215,720 (354,099) ● Petrol Stations: (7,702) ● Addresses: 27,341,262 (OSGB); 532,886 ● Electricity Poles: 94,199 (183, 987) ● Road length: 522,627 km (407,532 km) ● 5 post boxes with Edward VIII cypher ● Only 110 War Memorials ● 847 Fire Hydrants ● 1,378 Real Ale pubs – 82 with Real Fires ● 4771 Cycle Parking ● 300 Wildlife Hides ● 5,552 Stiles ● 1,774 Canal Locks ● 2 Knitting Shops Ordnance Survey figures: /www.ordnancesurvey.co.uk/blog/2013/04/10-fascinating-facts-from- ordnance-survey/ OSM figures (April '13): /taginfo.openstreetmap.org.uk/
  • 5. How I use QGISHow I use QGIS ● OSM data => PostGIS DB ● Initial analysis in QGIS ● PostGIS routines for more complex data manipulation ● R and other tools for stats/segmentation ● Visualisation in QGIS
  • 6. Case Study 1 : PubsCase Study 1 : Pubs
  • 7. Pub Density in Great BritainPub Density in Great Britain
  • 8. Cartograms based on PubsCartograms based on Pubs
  • 9. Cartograms based on PubsCartograms based on Pubs
  • 10. Case Study 2:Case Study 2: Simulating Urban AtlasSimulating Urban Atlas ● 300+ EU cities population >100k – 119 in April 2010 – 228 in Sept. 2010 ● Baseline date 2006-7 ● Used 2.5 m imagery ● 5-6 year refresh cycle ● Minimum Map Unit (MMU) 0.25 ha urban / 1 ha rural http://sia.eionet.europa.eu/Land Monitoring Core Service/Urban Atlas
  • 11. Examples of mapping OSM TagsExamples of mapping OSM Tags to Urban Atlas Categoriesto Urban Atlas Categories UA Code UA Description OSM Tags Comments 14100 Parks, Urban Green Space amenity=graveyard landuse=cemetery leisure=park leisure=village_green 14200 Sports Areas landuse=allotments landuse=recreation_ground leisure=golf_course leisure=pitch leisure=stadium 20000 Agricultural Land landuse=farm landuse=farmland landuse=pasture landuse=orchard landuse=vineyard leisure=nature_reserve natural=scrub,natural=heath natural=wetland natural=rock,natural=scree Additional OSM tags are also valid for this code (e.g., natural=glacier) 30000 Woods & Forest natural=wood landuse=forest 50000 Water landuse=reservoir waterway=riverbank natural=water
  • 12. Painter’s Algorithm in QGISPainter’s Algorithm in QGIS
  • 13.
  • 14.
  • 15. Case Study 3:Case Study 3: Retail in OSMRetail in OSM
  • 16. Retail Geo-dataRetail Geo-data  DriversDrivers –Personal interest • Used to consult to large retail chains & FMCG firm –Article in Directions about Geolytix • Featured Nottingham, my main mapping location – Availability of Food Hygiene Open Data  QuestionsQuestions – How difficult was it to systematically get retail landuse and retail sites into OSM? – Was OSM data good enough for segmentation of landuse? Source: Geolytix in Directions Magazine
  • 17. FHRS 1 (local) Government Open Data • Addresses • Partial geolocation – postcode • Business Type – Pub/Bar/Nightclub – Supermarket – Café/Restaurant – Other Retail • Covers at least 50-60% of retail outlets • Usually current – Typical inspection interval 6-12 months
  • 18. Tracking my ownTracking my own OSM MappingOSM Mapping ● Plot premises by postcode centroid ● OpenLayers plugin for background ● Track areas visited and added to OSM in Excel Spreadsheet ● S/s linked in as layer ● Update to show places to map ● Push un-surveyed postcodes out as a GPX ● Load GPX on Garmin
  • 22. Case Study 4 : Street LightsCase Study 4 : Street Lights
  • 23. Street Lights and OSM QualityStreet Lights and OSM Quality
  • 24. Street Lights and OSM QualityStreet Lights and OSM Quality
  • 25. Maps for DogsMaps for Dogs
  • 26. Approaches to using OSM DataApproaches to using OSM Data ● Direct from OSM (API/ XML files) – Earlier Plugin (deprecated) – 2.0 method – ogr2ogr ● via Postgres DB – osm2pgsql – osmosis – imposm – osm2postgresql – osm2pgrouting ● via Shapefiles – Geofabrik ● Limited number of layers ● Limited sets of attributes – Roll your own http://wiki.openstreetmap.org/wiki/Osmosis http://wiki.openstreetmap.org/wiki/Osm2postgresql http://sourceforge.net/projects/osm2postgresql/ http://download.geofabrik.de/
  • 27. Postgre-SQL/GIS and osm2pgsqlPostgre-SQL/GIS and osm2pgsql ● osm2pgsql converts osm data to postgres/postgis – Slightly lossy ● Relationship between members of multipolygons ● Road and other network topologies – Can choose projection ● default 3087 – Can tweak import rules ● Style files ● LUA – Fiddly under Windows ● osmconvert & osmfilter – Very useful tools to preprocess data for particular purposes ● Filter on OSM tag values ● Convert polygons to centroids ● ALWAYS USE -k option – Stores less widely used tags as an hstore column – Maximises flexibility – Throws away coastline by default (sometimes useful to keep it) http://wiki.openstreetmap.org/wiki/Osm2pgsql http://wiki.openstreetmap.org/wiki/Osmconvert http://wiki.openstreetmap.org/wiki/Osmfilter
  • 28. ProblemsProblems ● Polygon Handling ● Generalisation ● Missing data ● Free-form Tagging
  • 29. The Problem with PolygonsThe Problem with Polygons • No Area primitive in OSM • Overlapping polygons • OSM – Broken polygons – Intersecting polygons – osm2pgsql • In QGIS – Render OK – Geometry Operations fail • Essential tool: cleangeometry PostGIS function (SOGIS) http://www.sogis1.so.ch/sogis/dl/postgis/cleanGeometry.sql
  • 30. GeneralisationGeneralisation • Multiple Ways – Most objects will be formed from many OSM ways (e.g, Thames, M4) • No simplified data – Dual carriageways – Roundabouts and flares – Built-up areas – Over noded for many uses • Fine-grain tagging • May require elaborate pre- processing
  • 31. Tagging IssuesTagging Issues • Synonymy – natural=wood – landuse=forest • Variable Semantics – highway=path – place=hamlet – highway=trunk (gets changed every now & then) • Tagging for the Render – natural=sand for Golf bunker – landuse=grass Everywhere • Semantic Degradation – Tag with accepted semantics being used for something else – landuse=recreation_ground for Ski areas in US • Odd names – shop=mall Shopping Centre
  • 33. Other things I do in QGISOther things I do in QGIS ● Vice County maps using OSGB Open Data – Plan to investigate Atlas module now ● Distribution Maps of Trees in N. Hemisphere ● Attempts to analyse suburban structure based on building dates – Used Portland Oregon data – Huge Delauney triangulation
  • 34. ConclusionsConclusions ● QGIS fantastic tool for a wide range of manipulations of OpenStreetMap data – Particularly well suited for ● Prototyping & visualisation ● Combining with other Open Data sources ● Recommend use with PostGIS – Maximises flexibility – Reduces complexity of potential learning curve for the OSM toolchain – Ability to manipulate data in PostGIS may be important ● Be aware of limitations and gotchas of OSM data
  • 35. Supplementary SlidesSupplementary Slides ● Managing polygons for detailed analysis (Urban Atlas)
  • 36. PostGIS 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
  • 37. Comparison 1 No OSM Data Residential Disagreement Agreement Nottingham Area
  • 38. Comparison 2 No OSM Data Residential Disagreement Agreement
  • 39.
  • 40.
  • 42. Supplementary SlidesSupplementary Slides ● Examples of OSM Mapping from Port-au-Prince January 2010