SlideShare a Scribd company logo
8
Most read
15
Most read
18
Most read
Creating Maps from OpenStreetMap Data Using Mapnik Graham Jones 23 February 2011
Purpose The purpose of this presentation is to: Provide an overview of the concepts associated with creating a map from OpenStreetMap data using mapnik.
Describe the structure of an osm2pgsql and a mapnik stylesheet.
Provide references to more detailed instructions.
Scope This presentation provides only a high level overview – there are many more resources on the internet that go into more detail.
It is not about detailed installation instructions for the tools – there are quite a few resources on the internet that do this.
References are provided at the end.
What do you need to make a map? OpenStreetMap Data:  a '.osm' file covering the region you are interested in. Possible sources of this data are: The OSM api (using say JOSM)
XAPI (if it is working)
A 'planet extract' from  http://www.geofabrik.de . Coastline & Population Centres data (for small sale maps).
Ideas about what information you would like to display, and how you would like to display it.
Why is it so complicated? The mapnik library that is discussed in this presentation is a general purpose map drawing utilitiy.
It is very powerful and can do all sorts – take data from different data sources, plot it in different ways depending on the map scale etc.  With power comes complexity.
The main issue is that the usual way of using OSM data with mapnik is not to have mapnik read the data directly, but load the data into a database first, and mapnik gets the data from there.  This means that you need a lot of tools to draw a map.
Is there an alternative? Yes – there are a few different renderers for OSM data – try searching the OSM wiki for: Osmarender
Maperitive But I understand mapnik better than these, so they are not considered further here.
The OSM Mapnik Rendering Tools Key OSM Data file (.osm) PostgreSQL / postGIS database mapnik Mapnik stylesheet  (.xml) Extra Data  (Coastline Shapefiles etc.) generate_image.py or generate_tiles.py osm2pgsql default.style Files to be Edited / Customised Fixed data / programs / libraries
osm2pgsql osm2pgsql is the tool that loads OSM data into the postgresql database.
It does three important things: Filters the data to limit the amount of data in the database.
Reprojects the data from lat,lon values to mercator projection x,y positions.
Creates points, lines and polygons from the OSM nodes, ways and relations, to be compatible with mapnik.
osm2pgsql style file osm2pgsql takes a file (called default.style by default), which tells it which data to put into the database.

More Related Content

PPTX
Spectral clustering
PPTX
Social Network Analysis - Lecture 4 in Introduction to Computational Social S...
PPT
Histogram equalization
PDF
Web mining slides
DOC
K-MEDOIDS CLUSTERING USING PARTITIONING AROUND MEDOIDS FOR PERFORMING FACE R...
PPT
Cs501 classification prediction
PDF
Content-Based Image Retrieval (D2L6 Insight@DCU Machine Learning Workshop 2017)
PDF
Digital Image Processing: Image Enhancement in the Frequency Domain
Spectral clustering
Social Network Analysis - Lecture 4 in Introduction to Computational Social S...
Histogram equalization
Web mining slides
K-MEDOIDS CLUSTERING USING PARTITIONING AROUND MEDOIDS FOR PERFORMING FACE R...
Cs501 classification prediction
Content-Based Image Retrieval (D2L6 Insight@DCU Machine Learning Workshop 2017)
Digital Image Processing: Image Enhancement in the Frequency Domain

What's hot (11)

PDF
CV_2 Fourier_Transformation
PDF
CV_1 Introduction of Computer Vision and its Application
PPT
PDF
PPTX
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
PPTX
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
PDF
Introduction to Complex Networks
PPT
Image processing9 segmentation(pointslinesedges)
PPTX
Animation in Computer Graphics
PPT
2 d transformation
PPTX
Dda line algorithm presentatiion
CV_2 Fourier_Transformation
CV_1 Introduction of Computer Vision and its Application
DATA STRUCTURE AND ALGORITHM LMS MST KRUSKAL'S ALGORITHM
Image Segmentation using Otsu's Method - Computer Graphics (UCS505) Project PPT
Introduction to Complex Networks
Image processing9 segmentation(pointslinesedges)
Animation in Computer Graphics
2 d transformation
Dda line algorithm presentatiion
Ad

Viewers also liked (16)

ODP
Mapnik Sotm 2007
PDF
Making use of OpenStreetMap data with Python
PPTX
The Secret to Mapnik Mastery
PDF
FME World Tour 2015 Dublin - Ordnance Survey Ireland - Martin Creaton
PDF
Augmented Reality in JavaScript
PDF
GeoServer 2.4.x 한국어 사용자 지침서
PDF
NetworkX - python graph analysis and visualization @ PyHug
PDF
Introdução ao GeoServer 2.0
PPTX
Networkx & Gephi Tutorial #Pydata NYC
PPTX
A Fast and Dirty Intro to NetworkX (and D3)
PDF
Introdução ao PostGIS
PPTX
OpenStreetMap in 3D using Python
PDF
GeoBeer July 3rd, 2013
PPTX
3d mit Python (PythonCamp)
PDF
How to Make Awesome SlideShares: Tips & Tricks
PDF
Getting Started With SlideShare
Mapnik Sotm 2007
Making use of OpenStreetMap data with Python
The Secret to Mapnik Mastery
FME World Tour 2015 Dublin - Ordnance Survey Ireland - Martin Creaton
Augmented Reality in JavaScript
GeoServer 2.4.x 한국어 사용자 지침서
NetworkX - python graph analysis and visualization @ PyHug
Introdução ao GeoServer 2.0
Networkx & Gephi Tutorial #Pydata NYC
A Fast and Dirty Intro to NetworkX (and D3)
Introdução ao PostGIS
OpenStreetMap in 3D using Python
GeoBeer July 3rd, 2013
3d mit Python (PythonCamp)
How to Make Awesome SlideShares: Tips & Tricks
Getting Started With SlideShare
Ad

Similar to Rendering OpenStreetMap Data using Mapnik (20)

PPTX
Beholding the giant pyramid of application development; why Ajax applications...
PPT
Using KML for Thematic Mapping
PPT
Open Maps (Or Close Enough?)
PDF
OpenStreetMap louis liu
PDF
Graphs made easy with SAS ODS Graphics Designer (PAPER)
PDF
Working with OpenStreetMap using Apache Spark and Geotrellis
PDF
Leicester 2010 notes
PPT
Mappetizer Web mapping software
ODP
Introducing Modern Perl
PPT
Is There Room For Another Elephant In Tucson
PDF
Concepts and Methods of Embedding Statistical Data into Maps
PDF
Osgis 2010 notes
PPT
Hadoop Hive Talk At IIT-Delhi
PPTX
02 create first-map
PPT
Xadoop - new approaches to data analytics
PPT
Web Scraper Shibuya.pm tech talk #8
PPT
Scientific Computing with Python Webinar --- May 22, 2009
PPT
Building real-time collaborative apps with Ajax.org Platform
PPT
R Spatial Analysis using SP
PPT
Playing with d3.js
Beholding the giant pyramid of application development; why Ajax applications...
Using KML for Thematic Mapping
Open Maps (Or Close Enough?)
OpenStreetMap louis liu
Graphs made easy with SAS ODS Graphics Designer (PAPER)
Working with OpenStreetMap using Apache Spark and Geotrellis
Leicester 2010 notes
Mappetizer Web mapping software
Introducing Modern Perl
Is There Room For Another Elephant In Tucson
Concepts and Methods of Embedding Statistical Data into Maps
Osgis 2010 notes
Hadoop Hive Talk At IIT-Delhi
02 create first-map
Xadoop - new approaches to data analytics
Web Scraper Shibuya.pm tech talk #8
Scientific Computing with Python Webinar --- May 22, 2009
Building real-time collaborative apps with Ajax.org Platform
R Spatial Analysis using SP
Playing with d3.js

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PDF
Electronic commerce courselecture one. Pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPT
Teaching material agriculture food technology
PPTX
A Presentation on Artificial Intelligence
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Machine Learning_overview_presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
Encapsulation theory and applications.pdf
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
Electronic commerce courselecture one. Pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Weekly Chronicles - August'25-Week II
Teaching material agriculture food technology
A Presentation on Artificial Intelligence
Digital-Transformation-Roadmap-for-Companies.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Assigned Numbers - 2025 - Bluetooth® Document
Spectral efficient network and resource selection model in 5G networks
A comparative analysis of optical character recognition models for extracting...
Per capita expenditure prediction using model stacking based on satellite ima...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Big Data Technologies - Introduction.pptx
Machine Learning_overview_presentation.pptx
MYSQL Presentation for SQL database connectivity

Rendering OpenStreetMap Data using Mapnik