SlideShare a Scribd company logo
1 of 48
Download to read offline
#foss4g13, Nottingham, Sept. 19th
THINGS TO DOTHINGS TO DO
WITHWITH
OPENSTREETMAPOPENSTREETMAP
#foss4g13, Nottingham, Sept. 19th
OverviewOverview
1. Available Data Sources and
Download options
2. Data Processing and Edition
3. Creating maps on the web
4. Database import
5. Rendering and Styling
6. Routing
7. Advanced Tools
#foss4g13, Nottingham, Sept. 19th
ObjectiveObjective
Detect and summarize the
different existing options, and
potential applications using
OSM data.
Detect of new services and
applications to be offered to
the university community
#foss4g13, Nottingham, Sept. 19th
#1.1 Basic Available#1.1 Basic Available
Data Sources &Data Sources &
DownloadDownload
a) Planet OSMa) Planet OSM
b) History
c) Diff. files
#foss4g13, Nottingham, Sept. 19th
a) Planet OSMa) Planet OSM
A single file
29 Gb
“All the nodes, ways and
relations that make up your
map”
Weekly updated
PBF or OSM XML
#foss4g13, Nottingham, Sept. 19th
a) Planet OSMa) Planet OSM
#foss4g13, Nottingham, Sept. 19th
#1.1 Basic Available#1.1 Basic Available
Data Sources &Data Sources &
DownloadDownload
a) Planet OSMa) Planet OSM
b) Historyb) History
c) Diff. files
#foss4g13, Nottingham, Sept. 19th
b) Historyb) History
A single file
>39 Gb
“Full editing history of the OSM
Database”
Monthly/Yearly updated
Latest: 08-feb-2013
#foss4g13, Nottingham, Sept. 19th
b) Historyb) History
#foss4g13, Nottingham, Sept. 19th
#1.1 Basic Available#1.1 Basic Available
Data Sources &Data Sources &
DownloadDownload
a) Planet OSMa) Planet OSM
b) Historyb) History
c) Diff. filesc) Diff. files
#foss4g13, Nottingham, Sept. 19th
c) Diff. filesc) Diff. files
“Contains changes in the OSM data
over some period in time”
Minute/Hour/Day
Format=OsmChange
File format used by osmosisosmosis and
osmconvertosmconvert
Contains: create/modify/delete
#foss4g13, Nottingham, Sept. 19th
c) Diff. filesc) Diff. files
#foss4g13, Nottingham, Sept. 19th
#1.2 Other download#1.2 Other download
optionsoptions
a) By Country / Region /a) By Country / Region /
AreaArea
b) By Small Region or by
Typology
#foss4g13, Nottingham, Sept. 19th
a) By Country / Region /a) By Country / Region /
AreaArea
#foss4g13, Nottingham, Sept. 19th
#1.2 Other download#1.2 Other download
optionsoptions
a) By Country / Region /a) By Country / Region /
AreaArea
b) By Small Region or byb) By Small Region or by
TypologyTypology
#foss4g13, Nottingham, Sept. 19th
Tool: XAPIXAPI (Extended OSM API
with search and query capabilities)
Example of data download by BBOXBBOX:
http://open.mapquestapi.com/xapi/api/0.6/*[bbox=-77,38.8,-77.0,38.9]
Example of data download by BBOXBBOX
and TAG/TYPE/ELEMENTTAG/TYPE/ELEMENT:
http://open.mapquestapi.com/xapi/api/0.6/node[amenity=university]
[bbox=-1.2,52.9,-1.0,52.9]
b) By small region...b) By small region...
#foss4g13, Nottingham, Sept. 19th
Tool: Overpass.APIOverpass.API (Optimized,
search criteria by location, type of
objects, tag properties, proximity...
or a combination)
wget -O target.osm "http://overpass-api.de/api/interpreter?
data=node[name="University of Nottingham"];out;"
b) By small region...b) By small region...
node[“name”=”Bonn”];
node
(around:1000)
[“name”=”Gielgen”];
out body;
#foss4g13, Nottingham, Sept. 19th
#2 Data Edition#2 Data Edition
> How to participate?> How to participate?
Data capture: GPS & Digitizing
> What to do? Edit!> What to do? Edit!
Add new lines/points/areas
Modify existing lines/points/areas
Correct errors or mistakes
Add “characteristics” to elements
#foss4g13, Nottingham, Sept. 19th
#2 Data Edition#2 Data Edition
> TAGS> TAGS
Each element
has a tag or
several tags
that give us its
characteristics
Take a look at “OSM Map Features”
Wrong TAG → Wrong search → Wrong result
#foss4g13, Nottingham, Sept. 19th
Map Generation = Validation + Upload
#foss4g13, Nottingham, Sept. 19th
#2 Data Edition Tools#2 Data Edition Tools
More info: http://wiki.openstreetmap.org/wiki/Editing#Choice_of_editors
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors:#2 Top Data Editors:
JOSMJOSM
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors:#2 Top Data Editors:
JOSMJOSM
* Offline editor
* Simple and complex editions
* Import GPS Tracks, Manual
digitizing, use of WMS, Topology
validation and upload, ...
* Extra functionalities
* Documentation
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors:#2 Top Data Editors:
MerkaartorMerkaartor
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors:#2 Top Data Editors:
MerkaartorMerkaartor
* Offline editor
* Slightly different to JOSM
* Some specific tools: transparency
* Documentation
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors:#2 Top Data Editors:
Potlatch 2Potlatch 2
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors:#2 Top Data Editors:
Potlatch 2Potlatch 2
* On line editor
* Simple and fast editions
* Basic tools for edition and labeling
* Documentation
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors: iD#2 Top Data Editors: iD
#foss4g13, Nottingham, Sept. 19th
#2 Top Data Editors: iD#2 Top Data Editors: iD
* On line editor
* Fast and friendly, intuitive GUI
* Simple and fast editions
* Tools for editing and labeling
* Supports displaying and editing
route relations and turns restrictions
* Documentation
#foss4g13, Nottingham, Sept. 19th
#3 Creating maps on the#3 Creating maps on the
WebWeb
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
<div id="map" style=”height: 180px; width:400px”></div>
<script type="text/javascript">
var map = L.map('map');
var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
var osmAttrib='Map data © OpenStreetMap contributors';
var osm = new L.TileLayer(osmUrl, {minZoom: 8, maxZoom: 12, attribution: osmAttrib});
map.setView(new L.LatLng(51.3, 0.7),9);
map.addLayer(osm);
</script>
API Leaflet
Map: position & size
OSM Layer
Layer
Properties
Initial
coordinates
a) Tool: API Leaflet
#foss4g13, Nottingham, Sept. 19th
#3 Creating maps on the#3 Creating maps on the
WebWeb
API Leaflet
Map: position & size
OSM Layer
Layer
Properties
Initial
coordinates
Tool: API Leaflet
With just few lines of code
Javascript → Executed on client side
No requirements on server side
#foss4g13, Nottingham, Sept. 19th
#4 Database import#4 Database import
Tool Use Schema Allow diff. files Contain predefined
geometries
Contain all the
attributes
osm2pgsql Rendering osm2pgsql Yes Yes No
osmosis Mirroring apidb Yes No Yes
osmosis Analysis pgsnapshot Yes Yes No
imposm Rendering imposm No Yes No
osm2pgsql Geocoding nominatim Yes Yes Yes
* Each tool generates a specific DB
* Different use
* Organize the data: Schema → number of
tables, columns and relations
#foss4g13, Nottingham, Sept. 19th
#4 Database import#4 Database import
Tools > osm2pgsql: group elements
into a table by feature type
Tables: planet_osm_polygon,
planet_osm_line, planet_osm_point,
planet_osm_roads
Configuration: default.style
# OsmType Tag DataType Flags
node,way highway text linear
node,way aerialway text linear
node,way aeroway text polygon
node,way amenity text polygon
...
#foss4g13, Nottingham, Sept. 19th
#4 Database import#4 Database import
Tools > Imposm: Generates one table
for each type of entity: amenities,
places, buildings, transport_points...
Tables with simplified spatial entities
Configuration: defaultmapping.py
towers = Points(
name = 'towers',
mapping = {'man_made': ('tower', 'water_tower')
}
fields = (
('height', Integer()),
)
)
#foss4g13, Nottingham, Sept. 19th
#5 Rendering#5 Rendering
Tools > # Mapnik (mapnik.org)
Allow the generation of raster layers
based on geospatial data: PNG, JPEG, SVG
and PDF
#foss4g13, Nottingham, Sept. 19th
Tools > # Mapnik (mapnik.org)
Supports shapefiles, PostGIS, TIFF,
rasters, osm as well as other formats
supported by the gdal/ogr library
An XML (similar css) is used to the map
design process
#5.1 Rendering#5.1 Rendering
#foss4g13, Nottingham, Sept. 19th
#5.2 Rendering styles#5.2 Rendering styles
Tools > Tilemill, a software developed for
cartographic design
Tilemill: Allows to define styles and
render images (over Mapnik). Supports
osm2pgsql and Imposm schemas
OsmBright, is a Tilemill project that offers
a basis for representing OSM data
#foss4g13, Nottingham, Sept. 19th
#5.2 Rendering styles#5.2 Rendering styles
#foss4g13, Nottingham, Sept. 19th
#6 Routing#6 Routing
Tools > Osm2po (Multiplatform,
requires Java 6+)
Osm2poOsm2po includes a GUI. Allows
to generate SQL expressions
compatible with pgRouting
#foss4g13, Nottingham, Sept. 19th
#foss4g13, Nottingham, Sept. 19th
#6 Routing#6 Routing
Tools > Osm2pgrouting (requires
PostgreSQL, PostGIS and
pgRouting)
Osm2pgroutingOsm2pgrouting imports the
data (osmaosma format) directly to
a PostgreSQL / PostGIS
database while generates the
graph structure
#foss4g13, Nottingham, Sept. 19th
#6 Routing#6 Routing
Tools > Osrm (C++)
OsrmOsrm implements a high
performance routing engine for
shortest paths in network
analysis
It's very fast!
#foss4g13, Nottingham, Sept. 19th
#7 Libraries#7 Libraries
Java, Perl, PHP, Python, R, Ruby
Imposm parser, osmread,
J2memap, libosm, libOSM,
libosmscout, libRoadNav,
MapJumper, osm4routing,
OSMLib, OsmSharp, ...
#foss4g13, Nottingham, Sept. 19th
BruTile, COSMCrtl, Halcyon,
JXMapViewer, JMapViewer,
JXMapKit, kogutowicz,
libchamplain, Mapsforge, ...
#7 Widgets#7 Widgets
#foss4g13, Nottingham, Sept. 19th
#8 Frameworks#8 Frameworks
* CloudMade
* Osmium
* Osmosis
* OSMNavigation
* libOSM
More info: http://wiki.openstreetmap.org/wiki/Frameworks
#foss4g13, Nottingham, Sept. 19th
#9 Conclusions#9 Conclusions
With OSM we can do something
more than download & edit
data
The OSM evolution has
promoted the appearance of a
constellation of tools, that
brings added value beyond the
data
#foss4g13, Nottingham, Sept. 19th
#9 What's next?#9 What's next?
Keep this document open and
alive and updated
#foss4g13, Nottingham, Sept. 19th
A lot of thanks!A lot of thanks!
Lluís VicensLluís Vicens
SIGTE – Universitat de GironaSIGTE – Universitat de Girona

More Related Content

What's hot

What's hot (12)

Machine learning using TensorFlow on DSX
Machine learning using TensorFlow on DSX Machine learning using TensorFlow on DSX
Machine learning using TensorFlow on DSX
 
BDE_SC4_WS3_6_Luigi Selmi - Pilot SC4
BDE_SC4_WS3_6_Luigi Selmi - Pilot SC4BDE_SC4_WS3_6_Luigi Selmi - Pilot SC4
BDE_SC4_WS3_6_Luigi Selmi - Pilot SC4
 
Big Data Europe: Simplifying Development and Deployment of Big Data Applications
Big Data Europe: Simplifying Development and Deployment of Big Data ApplicationsBig Data Europe: Simplifying Development and Deployment of Big Data Applications
Big Data Europe: Simplifying Development and Deployment of Big Data Applications
 
APPUiO Quick Start (OpenShift > DevOps > App Dev)
APPUiO Quick Start (OpenShift > DevOps > App Dev)APPUiO Quick Start (OpenShift > DevOps > App Dev)
APPUiO Quick Start (OpenShift > DevOps > App Dev)
 
OpenNebulaConf2017EU: Testing Saltstack states with OpenNebula by Perry Manuk...
OpenNebulaConf2017EU: Testing Saltstack states with OpenNebula by Perry Manuk...OpenNebulaConf2017EU: Testing Saltstack states with OpenNebula by Perry Manuk...
OpenNebulaConf2017EU: Testing Saltstack states with OpenNebula by Perry Manuk...
 
Scientific Plotting in Python
Scientific Plotting in PythonScientific Plotting in Python
Scientific Plotting in Python
 
Implementation
ImplementationImplementation
Implementation
 
SC4 Hangout - Luigi Selmi, Transport pilot architecture
SC4 Hangout - Luigi Selmi, Transport pilot architectureSC4 Hangout - Luigi Selmi, Transport pilot architecture
SC4 Hangout - Luigi Selmi, Transport pilot architecture
 
OpenNebulaConf2017EU: Growing into the Petabytes for Fun and Profit by Michal...
OpenNebulaConf2017EU: Growing into the Petabytes for Fun and Profit by Michal...OpenNebulaConf2017EU: Growing into the Petabytes for Fun and Profit by Michal...
OpenNebulaConf2017EU: Growing into the Petabytes for Fun and Profit by Michal...
 
WebGL: 3D Graphics for the Web
WebGL: 3D Graphics for the WebWebGL: 3D Graphics for the Web
WebGL: 3D Graphics for the Web
 
BDE SC4 Hangout - Hajira Jabeen, general architecture
BDE SC4 Hangout - Hajira Jabeen, general architectureBDE SC4 Hangout - Hajira Jabeen, general architecture
BDE SC4 Hangout - Hajira Jabeen, general architecture
 
OpenNebulaConf2017EU: Welcome Talk State and Future of OpenNebula by Ignacio ...
OpenNebulaConf2017EU: Welcome Talk State and Future of OpenNebula by Ignacio ...OpenNebulaConf2017EU: Welcome Talk State and Future of OpenNebula by Ignacio ...
OpenNebulaConf2017EU: Welcome Talk State and Future of OpenNebula by Ignacio ...
 

Similar to Things to do with OpenStreetMap

Event Visualization with OpenStreetMap Data, Interdisciplinary Project
Event Visualization with OpenStreetMap Data, Interdisciplinary ProjectEvent Visualization with OpenStreetMap Data, Interdisciplinary Project
Event Visualization with OpenStreetMap Data, Interdisciplinary Project
Bibek Shrestha
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Jim Tochterman
 

Similar to Things to do with OpenStreetMap (20)

Open GeoData, Open GeoTools: An Introduction
Open GeoData, Open GeoTools: An IntroductionOpen GeoData, Open GeoTools: An Introduction
Open GeoData, Open GeoTools: An Introduction
 
State of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open SourceState of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open Source
 
Writing infinite scalability web applications with PHP and PostgreSQL
Writing infinite scalability web applications with PHP and PostgreSQLWriting infinite scalability web applications with PHP and PostgreSQL
Writing infinite scalability web applications with PHP and PostgreSQL
 
Next! Navigator
Next! NavigatorNext! Navigator
Next! Navigator
 
Rendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using MapnikRendering OpenStreetMap Data using Mapnik
Rendering OpenStreetMap Data using Mapnik
 
Danny Banks - Building consistent Cross-Platform interfaces - Codemotion Amst...
Danny Banks - Building consistent Cross-Platform interfaces - Codemotion Amst...Danny Banks - Building consistent Cross-Platform interfaces - Codemotion Amst...
Danny Banks - Building consistent Cross-Platform interfaces - Codemotion Amst...
 
OpenGeoData Italia - Roma - Simone Cortesi | Maurizio Napolitano | openstreet...
OpenGeoData Italia - Roma - Simone Cortesi | Maurizio Napolitano | openstreet...OpenGeoData Italia - Roma - Simone Cortesi | Maurizio Napolitano | openstreet...
OpenGeoData Italia - Roma - Simone Cortesi | Maurizio Napolitano | openstreet...
 
Presentationsfk2010
Presentationsfk2010Presentationsfk2010
Presentationsfk2010
 
Open Source GIS
Open Source GISOpen Source GIS
Open Source GIS
 
Event Visualization with OpenStreetMap Data, Interdisciplinary Project
Event Visualization with OpenStreetMap Data, Interdisciplinary ProjectEvent Visualization with OpenStreetMap Data, Interdisciplinary Project
Event Visualization with OpenStreetMap Data, Interdisciplinary Project
 
BGP Scanner - Isolario BGP-MRT Data Reader C Library and Tool
BGP Scanner - Isolario BGP-MRT Data Reader C Library and ToolBGP Scanner - Isolario BGP-MRT Data Reader C Library and Tool
BGP Scanner - Isolario BGP-MRT Data Reader C Library and Tool
 
Integrating PostGIS in Web Applications
Integrating PostGIS in Web ApplicationsIntegrating PostGIS in Web Applications
Integrating PostGIS in Web Applications
 
Intro elasticsearch taswarbhatti
Intro elasticsearch taswarbhattiIntro elasticsearch taswarbhatti
Intro elasticsearch taswarbhatti
 
Open layers
Open layersOpen layers
Open layers
 
LIFE GreenYourMove Project - GTFS data
LIFE GreenYourMove Project - GTFS data LIFE GreenYourMove Project - GTFS data
LIFE GreenYourMove Project - GTFS data
 
Raster data in GeoServer and GeoTools: Achievements, issues and future devel...
Raster data in GeoServer and GeoTools:  Achievements, issues and future devel...Raster data in GeoServer and GeoTools:  Achievements, issues and future devel...
Raster data in GeoServer and GeoTools: Achievements, issues and future devel...
 
GeoServer in Production: we do it, here is how!
GeoServer in Production: we do it, here is how!GeoServer in Production: we do it, here is how!
GeoServer in Production: we do it, here is how!
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
 
Field Data Collecting, Processing and Sharing: Using web Service Technologies
Field Data Collecting, Processing and Sharing: Using web Service TechnologiesField Data Collecting, Processing and Sharing: Using web Service Technologies
Field Data Collecting, Processing and Sharing: Using web Service Technologies
 
Presentation data collection and gtfs
Presentation data collection and gtfsPresentation data collection and gtfs
Presentation data collection and gtfs
 

More from Servei de SIG i Teledetecció (SIGTE), Universitat de Girona

More from Servei de SIG i Teledetecció (SIGTE), Universitat de Girona (10)

Introducción SIG [Máster Smart Cities UdG]
Introducción SIG [Máster Smart Cities UdG]Introducción SIG [Máster Smart Cities UdG]
Introducción SIG [Máster Smart Cities UdG]
 
SIG en dispositivos móviles - GEOwebinar UNIGIS
SIG en dispositivos móviles - GEOwebinar UNIGISSIG en dispositivos móviles - GEOwebinar UNIGIS
SIG en dispositivos móviles - GEOwebinar UNIGIS
 
Vlc Routing
Vlc RoutingVlc Routing
Vlc Routing
 
Tendències en Tecnologies de la GeoInformació al servei del sector turístic
Tendències en Tecnologies de la GeoInformació al servei del sector turístic Tendències en Tecnologies de la GeoInformació al servei del sector turístic
Tendències en Tecnologies de la GeoInformació al servei del sector turístic
 
Geoinformacion colaborativa y en comunidad
Geoinformacion colaborativa y en comunidadGeoinformacion colaborativa y en comunidad
Geoinformacion colaborativa y en comunidad
 
Jornadas SIG Libre, un motor de proyectos e ideas... desde la Universidad
Jornadas SIG Libre, un motor de proyectos e ideas... desde la UniversidadJornadas SIG Libre, un motor de proyectos e ideas... desde la Universidad
Jornadas SIG Libre, un motor de proyectos e ideas... desde la Universidad
 
SIG y Educacion
SIG y EducacionSIG y Educacion
SIG y Educacion
 
LEGENDiary
LEGENDiaryLEGENDiary
LEGENDiary
 
La gestión transparente tiene forma de mapa
La gestión transparente tiene forma de mapaLa gestión transparente tiene forma de mapa
La gestión transparente tiene forma de mapa
 
Apps amb component GEO
Apps amb component GEOApps amb component GEO
Apps amb component GEO
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

Things to do with OpenStreetMap

  • 1. #foss4g13, Nottingham, Sept. 19th THINGS TO DOTHINGS TO DO WITHWITH OPENSTREETMAPOPENSTREETMAP
  • 2. #foss4g13, Nottingham, Sept. 19th OverviewOverview 1. Available Data Sources and Download options 2. Data Processing and Edition 3. Creating maps on the web 4. Database import 5. Rendering and Styling 6. Routing 7. Advanced Tools
  • 3. #foss4g13, Nottingham, Sept. 19th ObjectiveObjective Detect and summarize the different existing options, and potential applications using OSM data. Detect of new services and applications to be offered to the university community
  • 4. #foss4g13, Nottingham, Sept. 19th #1.1 Basic Available#1.1 Basic Available Data Sources &Data Sources & DownloadDownload a) Planet OSMa) Planet OSM b) History c) Diff. files
  • 5. #foss4g13, Nottingham, Sept. 19th a) Planet OSMa) Planet OSM A single file 29 Gb “All the nodes, ways and relations that make up your map” Weekly updated PBF or OSM XML
  • 6. #foss4g13, Nottingham, Sept. 19th a) Planet OSMa) Planet OSM
  • 7. #foss4g13, Nottingham, Sept. 19th #1.1 Basic Available#1.1 Basic Available Data Sources &Data Sources & DownloadDownload a) Planet OSMa) Planet OSM b) Historyb) History c) Diff. files
  • 8. #foss4g13, Nottingham, Sept. 19th b) Historyb) History A single file >39 Gb “Full editing history of the OSM Database” Monthly/Yearly updated Latest: 08-feb-2013
  • 9. #foss4g13, Nottingham, Sept. 19th b) Historyb) History
  • 10. #foss4g13, Nottingham, Sept. 19th #1.1 Basic Available#1.1 Basic Available Data Sources &Data Sources & DownloadDownload a) Planet OSMa) Planet OSM b) Historyb) History c) Diff. filesc) Diff. files
  • 11. #foss4g13, Nottingham, Sept. 19th c) Diff. filesc) Diff. files “Contains changes in the OSM data over some period in time” Minute/Hour/Day Format=OsmChange File format used by osmosisosmosis and osmconvertosmconvert Contains: create/modify/delete
  • 12. #foss4g13, Nottingham, Sept. 19th c) Diff. filesc) Diff. files
  • 13. #foss4g13, Nottingham, Sept. 19th #1.2 Other download#1.2 Other download optionsoptions a) By Country / Region /a) By Country / Region / AreaArea b) By Small Region or by Typology
  • 14. #foss4g13, Nottingham, Sept. 19th a) By Country / Region /a) By Country / Region / AreaArea
  • 15. #foss4g13, Nottingham, Sept. 19th #1.2 Other download#1.2 Other download optionsoptions a) By Country / Region /a) By Country / Region / AreaArea b) By Small Region or byb) By Small Region or by TypologyTypology
  • 16. #foss4g13, Nottingham, Sept. 19th Tool: XAPIXAPI (Extended OSM API with search and query capabilities) Example of data download by BBOXBBOX: http://open.mapquestapi.com/xapi/api/0.6/*[bbox=-77,38.8,-77.0,38.9] Example of data download by BBOXBBOX and TAG/TYPE/ELEMENTTAG/TYPE/ELEMENT: http://open.mapquestapi.com/xapi/api/0.6/node[amenity=university] [bbox=-1.2,52.9,-1.0,52.9] b) By small region...b) By small region...
  • 17. #foss4g13, Nottingham, Sept. 19th Tool: Overpass.APIOverpass.API (Optimized, search criteria by location, type of objects, tag properties, proximity... or a combination) wget -O target.osm "http://overpass-api.de/api/interpreter? data=node[name="University of Nottingham"];out;" b) By small region...b) By small region... node[“name”=”Bonn”]; node (around:1000) [“name”=”Gielgen”]; out body;
  • 18. #foss4g13, Nottingham, Sept. 19th #2 Data Edition#2 Data Edition > How to participate?> How to participate? Data capture: GPS & Digitizing > What to do? Edit!> What to do? Edit! Add new lines/points/areas Modify existing lines/points/areas Correct errors or mistakes Add “characteristics” to elements
  • 19. #foss4g13, Nottingham, Sept. 19th #2 Data Edition#2 Data Edition > TAGS> TAGS Each element has a tag or several tags that give us its characteristics Take a look at “OSM Map Features” Wrong TAG → Wrong search → Wrong result
  • 20. #foss4g13, Nottingham, Sept. 19th Map Generation = Validation + Upload
  • 21. #foss4g13, Nottingham, Sept. 19th #2 Data Edition Tools#2 Data Edition Tools More info: http://wiki.openstreetmap.org/wiki/Editing#Choice_of_editors
  • 22. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors:#2 Top Data Editors: JOSMJOSM
  • 23. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors:#2 Top Data Editors: JOSMJOSM * Offline editor * Simple and complex editions * Import GPS Tracks, Manual digitizing, use of WMS, Topology validation and upload, ... * Extra functionalities * Documentation
  • 24. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors:#2 Top Data Editors: MerkaartorMerkaartor
  • 25. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors:#2 Top Data Editors: MerkaartorMerkaartor * Offline editor * Slightly different to JOSM * Some specific tools: transparency * Documentation
  • 26. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors:#2 Top Data Editors: Potlatch 2Potlatch 2
  • 27. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors:#2 Top Data Editors: Potlatch 2Potlatch 2 * On line editor * Simple and fast editions * Basic tools for edition and labeling * Documentation
  • 28. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors: iD#2 Top Data Editors: iD
  • 29. #foss4g13, Nottingham, Sept. 19th #2 Top Data Editors: iD#2 Top Data Editors: iD * On line editor * Fast and friendly, intuitive GUI * Simple and fast editions * Tools for editing and labeling * Supports displaying and editing route relations and turns restrictions * Documentation
  • 30. #foss4g13, Nottingham, Sept. 19th #3 Creating maps on the#3 Creating maps on the WebWeb <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" /> <!--[if lte IE 8]> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" /> <![endif]--> <script src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script> <div id="map" style=”height: 180px; width:400px”></div> <script type="text/javascript"> var map = L.map('map'); var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; var osmAttrib='Map data © OpenStreetMap contributors'; var osm = new L.TileLayer(osmUrl, {minZoom: 8, maxZoom: 12, attribution: osmAttrib}); map.setView(new L.LatLng(51.3, 0.7),9); map.addLayer(osm); </script> API Leaflet Map: position & size OSM Layer Layer Properties Initial coordinates a) Tool: API Leaflet
  • 31. #foss4g13, Nottingham, Sept. 19th #3 Creating maps on the#3 Creating maps on the WebWeb API Leaflet Map: position & size OSM Layer Layer Properties Initial coordinates Tool: API Leaflet With just few lines of code Javascript → Executed on client side No requirements on server side
  • 32. #foss4g13, Nottingham, Sept. 19th #4 Database import#4 Database import Tool Use Schema Allow diff. files Contain predefined geometries Contain all the attributes osm2pgsql Rendering osm2pgsql Yes Yes No osmosis Mirroring apidb Yes No Yes osmosis Analysis pgsnapshot Yes Yes No imposm Rendering imposm No Yes No osm2pgsql Geocoding nominatim Yes Yes Yes * Each tool generates a specific DB * Different use * Organize the data: Schema → number of tables, columns and relations
  • 33. #foss4g13, Nottingham, Sept. 19th #4 Database import#4 Database import Tools > osm2pgsql: group elements into a table by feature type Tables: planet_osm_polygon, planet_osm_line, planet_osm_point, planet_osm_roads Configuration: default.style # OsmType Tag DataType Flags node,way highway text linear node,way aerialway text linear node,way aeroway text polygon node,way amenity text polygon ...
  • 34. #foss4g13, Nottingham, Sept. 19th #4 Database import#4 Database import Tools > Imposm: Generates one table for each type of entity: amenities, places, buildings, transport_points... Tables with simplified spatial entities Configuration: defaultmapping.py towers = Points( name = 'towers', mapping = {'man_made': ('tower', 'water_tower') } fields = ( ('height', Integer()), ) )
  • 35. #foss4g13, Nottingham, Sept. 19th #5 Rendering#5 Rendering Tools > # Mapnik (mapnik.org) Allow the generation of raster layers based on geospatial data: PNG, JPEG, SVG and PDF
  • 36. #foss4g13, Nottingham, Sept. 19th Tools > # Mapnik (mapnik.org) Supports shapefiles, PostGIS, TIFF, rasters, osm as well as other formats supported by the gdal/ogr library An XML (similar css) is used to the map design process #5.1 Rendering#5.1 Rendering
  • 37. #foss4g13, Nottingham, Sept. 19th #5.2 Rendering styles#5.2 Rendering styles Tools > Tilemill, a software developed for cartographic design Tilemill: Allows to define styles and render images (over Mapnik). Supports osm2pgsql and Imposm schemas OsmBright, is a Tilemill project that offers a basis for representing OSM data
  • 38. #foss4g13, Nottingham, Sept. 19th #5.2 Rendering styles#5.2 Rendering styles
  • 39. #foss4g13, Nottingham, Sept. 19th #6 Routing#6 Routing Tools > Osm2po (Multiplatform, requires Java 6+) Osm2poOsm2po includes a GUI. Allows to generate SQL expressions compatible with pgRouting
  • 41. #foss4g13, Nottingham, Sept. 19th #6 Routing#6 Routing Tools > Osm2pgrouting (requires PostgreSQL, PostGIS and pgRouting) Osm2pgroutingOsm2pgrouting imports the data (osmaosma format) directly to a PostgreSQL / PostGIS database while generates the graph structure
  • 42. #foss4g13, Nottingham, Sept. 19th #6 Routing#6 Routing Tools > Osrm (C++) OsrmOsrm implements a high performance routing engine for shortest paths in network analysis It's very fast!
  • 43. #foss4g13, Nottingham, Sept. 19th #7 Libraries#7 Libraries Java, Perl, PHP, Python, R, Ruby Imposm parser, osmread, J2memap, libosm, libOSM, libosmscout, libRoadNav, MapJumper, osm4routing, OSMLib, OsmSharp, ...
  • 44. #foss4g13, Nottingham, Sept. 19th BruTile, COSMCrtl, Halcyon, JXMapViewer, JMapViewer, JXMapKit, kogutowicz, libchamplain, Mapsforge, ... #7 Widgets#7 Widgets
  • 45. #foss4g13, Nottingham, Sept. 19th #8 Frameworks#8 Frameworks * CloudMade * Osmium * Osmosis * OSMNavigation * libOSM More info: http://wiki.openstreetmap.org/wiki/Frameworks
  • 46. #foss4g13, Nottingham, Sept. 19th #9 Conclusions#9 Conclusions With OSM we can do something more than download & edit data The OSM evolution has promoted the appearance of a constellation of tools, that brings added value beyond the data
  • 47. #foss4g13, Nottingham, Sept. 19th #9 What's next?#9 What's next? Keep this document open and alive and updated
  • 48. #foss4g13, Nottingham, Sept. 19th A lot of thanks!A lot of thanks! Lluís VicensLluís Vicens SIGTE – Universitat de GironaSIGTE – Universitat de Girona