MapOSMatic, free city maps for everyone!

Similar documents
MapOSMatic: city maps for the masses

OSGIS Platform. Storing and distributing PostGIS, Deegree, UMN Map Server Desktop visualization JUMP, QGIS, Thuban, udig, gvsig

Development of a server to manage a customised local version of OpenStreetMap in Ireland

Slide 1 of 31 OPENGEOFICTION. Drawing a collaborative fictional world using the OSM software

Why GIS & Why Internet GIS?

ArcGIS Enterprise: What s New. Philip Heede Shannon Kalisky Melanie Summers Shreyas Shinde

Write a report (6-7 pages, double space) on some examples of Internet Applications. You can choose only ONE of the following application areas:

Among various open-source GIS programs, QGIS can be the best suitable option which can be used across partners for reasons outlined below.

gvsig a real tool for GIS technicians

PostGIS Cookbook. open source I community experience distilled

Living Atlas of the World: The Road Ahead. Deane Kensok Sean Breyer

Salisbury University: Eric Flint, John O Brien, & Alex Nohe

Estonian Place Names in the National Information System and the Place Names Register *

A Spatial Data Infrastructure for Landslides and Floods in Italy

TERMS OF REFERENCE FOR PROVIDING THE CONSULTANCY SERVICES OF

DataShine Automated Thematic Mapping of 2011 Census Quick Statistics

Existing Open Source Tools and Possibilities for Cadastre Systems

POSITION DESCRIPTION. Position Title: Geographic Information Systems (GIS) Coordinator Department: Engineering

Esri UC2013. Technical Workshop.

Evaluating Physical, Chemical, and Biological Impacts from the Savannah Harbor Expansion Project Cooperative Agreement Number W912HZ

GIS4Graph: a tool for analyzing (geo)graphs applied to study efficiency in a street network

UNIT 4: USING ArcGIS. Instructor: Emmanuel K. Appiah-Adjei (PhD) Department of Geological Engineering KNUST, Kumasi

ISO Series Standards in a Model Driven Architecture for Landmanagement. Jürgen Ebbinghaus, AED-SICAD

Globally Estimating the Population Characteristics of Small Geographic Areas. Tom Fitzwater

Incorporating ArcGIS Pro in your Curriculum

ArcGIS Enterprise: What s New. Philip Heede Shannon Kalisky Melanie Summers Sam Williamson

DP Project Development Pvt. Ltd.

Karsten Vennemann, Seattle. QGIS Workshop CUGOS Spring Fling 2015

Overview. Everywhere. Over everything.

One platform for desktop, web and mobile

GIS ADMINISTRATOR / WEB DEVELOPER EVANSVILLE-VANDERBURGH COUNTY AREA PLAN COMMISSION

Providing Public Access to King County GIS Data. Presented by: Michael Jenkins King County GIS Center Seattle, WA

Introduction to Portal for ArcGIS

A National Scale Infrastructure Database and Modelling Environment for the UK

Free and Open Source Software for Cadastre and Land Registration : A Hidden Treasure? Gertrude Pieper Espada. Overview

ArcGIS GeoAnalytics Server: An Introduction. Sarah Ambrose and Ravi Narayanan

Figure 1: The Centrope Region. Source: April 2010.

Geog 469 GIS Workshop. Managing Enterprise GIS Geodatabases

Development of a Web-Based GIS Management System for Agricultural Authorities in Iraq

Enabling ENVI. ArcGIS for Server

Leveraging Web GIS: An Introduction to the ArcGIS portal

GIS FOR PLANNING. Course Overview. Schedule. Instructor. Prerequisites. Urban Planning 792 Thursday s 5:30-8:10pm SARUP 158

gvsig: Open Source Solutions in spatial technologies

The PREVIEW Global Risk Data Platform: a geoportal to serve and share global data on risk to natural hazards

Hurricanes Katrina and Rita created the largest natural disaster in American history

Mass Asset Additions. Overview. Effective mm/dd/yy Page 1 of 47 Rev 1. Copyright Oracle, All rights reserved.

The conceptual view. by Gerrit Muller University of Southeast Norway-NISE

VVS maps are generated using DIVA

GIS-T 2010 Building a Successful Geospatial Data Sharing Framework: A Ohio DOT Success Story

GENERALIZATION IN THE NEW GENERATION OF GIS. Dan Lee ESRI, Inc. 380 New York Street Redlands, CA USA Fax:

PI SERVER 2012 Do. More. Faster. Now! Copyr i g h t 2012 O S Is o f t, L L C. 1

egeo.ch WebGIS an Internet GIS framework for the Swiss federal administrations based on CartoWeb, Mapserver and PostGIS

GeoSpatial Tools and Analysis David Currie

Flight Utilities Metar Reader version 3.1 by Umberto Degli Esposti

GIS for the Beginner on a Budget

CHAPTER 22 GEOGRAPHIC INFORMATION SYSTEMS

Geographic Information Systems (GIS) - Hardware and software in GIS

Visualizing Big Data on Maps: Emerging Tools and Techniques. Ilir Bejleri, Sanjay Ranka

GIS PORTFOLIO MOHAMED MAGDY MOHAMED HUSSAIN GIS ENGINEER. UWF GIS ONLINE CERTIFICATE GIS Internship (GIS4944)

Cobb County GIS: Beyond the Map

Introduction to Portal for ArcGIS. Hao LEE November 12, 2015

Finnish Open Data Portal for Meteorological Data

JOB DESCRI PTI ON. GIS Administrator

Outline Brief Overview MapPlace Website Data Delivery & Map Themes Digital Geology

Annual TTFO Meeting April 10, 2018 Michael J. Wittman, P.S. Chief Surveyor / GIS Coordinator

A NEW SYSTEM FOR THE GENERATION OF UTC(CH)

Geodatabase: Best Practices. Robert LeClair, Senior Instructor

Evaluating Physical, Chemical, and Biological Impacts from the Savannah Harbor Expansion Project Cooperative Agreement Number W912HZ

GeoSUR SRTM 30-m / TPS

INTRODUCTION. In March 1998, the tender for project CT.98.EP.04 was awarded to the Department of Medicines Management, Keele University, UK.

SYMBOLIC INTERACTIONISM: AN INTRODUCTION, AN INTERPRETATION, AN INTEGRATION: 10TH (TENTH) EDITION BY JOEL M. CHARON

DUG User Guide. Version 2.1. Aneta J Florczyk Luca Maffenini Martino Pesaresi Thomas Kemper

Development of Univ. of San Agustin Geographic Information System (USAGIS)

A Distributed GIS Architecture for Research in Baalbek Based on CISAR

Welcome to GST 101: Introduction to Geospatial Technology. This course will introduce you to Geographic Information Systems (GIS), cartography,

Road & Railway Network Density Dataset at 1 km over the Belt and Road and Surround Region

Administering your Enterprise Geodatabase using Python. Jill Penney

A Data Repository for Named Places and Their Standardised Names Integrated With the Production of National Map Series

The Challenge of Geospatial Big Data Analysis

Questions and Answers

Harvard Center for Geographic Analysis Geospatial on the MOC

19.2 Geographic Names Register General The Geographic Names Register of the National Land Survey is the authoritative geographic names data

UTAH S STATEWIDE GEOGRAPHIC INFORMATION DATABASE

The Open Sourcing of Infrastructure

CHEMISTRY IN DAILY LIFE BY KIRPAL SINGH DOWNLOAD EBOOK : CHEMISTRY IN DAILY LIFE BY KIRPAL SINGH PDF

Innovation. The Push and Pull at ESRI. September Kevin Daugherty Cadastral/Land Records Industry Solutions Manager

CentropeSTATISTICS Working Interactively with Cross-Border Statistic Data Clemens Beyer, Walter Pozarek, Manfred Schrenk

Portal for ArcGIS: An Introduction

Portal for ArcGIS: An Introduction. Catherine Hynes and Derek Law

Introduction to IsoMAP Isoscapes Modeling, Analysis, and Prediction

Lesser Sunda - Banda Seascape Atlas

PC ARC/INFO and Data Automation Kit GIS Tools for Your PC

A Railway Simulation Landscape Creation Tool Chain Considering OpenStreetMap Geo Data

Production Line Tool Sets

The World Bank and the Open Geospatial Web. Chris Holmes

Overview of Geospatial Open Source Software which is Robust, Feature Rich and Standards Compliant

FIT100 Spring 01. Project 2. Astrological Toys

Project EuroGeoNames (EGN) Results of the econtentplus-funded period *

RESOLUTION NO

Call for Applications

Transcription:

MapOSMatic, free city maps for everyone! Thomas Petazzoni thomas.petazzoni@enix.org Libre Software Meeting 2012 http://www.maposmatic.org Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 1 / 46

Thomas Petazzoni Embedded Linux engineer and trainer at Free Electrons Regular contributor to the Buildroot project, an open-source embedded Linux build system Contributor to the Linux kernel Active in the free software community: founder of Toulibre, founder of the Agenda du Libre One of the developer of MapOSMatic, together with David Decotigny, Gaël Utard, Maxime Petazzoni, David Mentré, Frédéric Lehobey, Étienne Loks, and many other contributors. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 2 / 46

Agenda 1 Original idea and goal 2 History 3 Current status 4 Technical details 5 Future Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 3 / 46

Original idea At some point in 2009... It would be great to be able to use OpenStreetMap data to generate city maps such as the ones we can see in town signs and in folded maps. Gilles Lamiral, OSM contributor of Bretagne, France Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 4 / 46

Public city maps Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 5 / 46

Folded maps Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 6 / 46

Goal Create an easy-to-use Web service, in which the user inputs the name of a city, and in return gets: 1 a map of that city, overlayed by a grid 2 an index of streets and amenities associated to the map Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 7 / 46

Development model The development mainly takes place during hackfests Hackfests are gathering of 4-6 developers for 2 to 8 days, fully dedicated to making progress on the project Hackfests provide an excellent productivity Maintenance and minor progress (bug fixes, translation updates) done outside of the hackfests, as a regular open-source project, with mailing-list, Git repositories, etc. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 8 / 46

Hackfest #0 August 2009, Toulouse, France Six OSM contributors No knowledge of PostgreSQL, PostGIS, Mapnik, OSM data structure, Cairo Initial version of MapOSMatic developed and published in 7 days Technologies: Python, Django, Cairo, PostgreSQL, PostGIS, Mapnik Limited to France, no support for languages other than French and English, very basic user interface, OSM data never updated http://www.maposmatic.org Excellent reception from the OpenStreetMap community Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 9 / 46

Hackfest #0 results Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 10 / 46

Hackfest #0 details Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 11 / 46

Hackfest #1 December 2009, near Paris, France Five developers, four days Features implemented Coverage of the whole world: required a much larger import of OSM data OSM database updated on a daily basis i18 infrastructure to adapt the street index generation on a per-language basis City name search based on Nominatim Amenities (schools, town hall, post offices) in the index All improvements put in production early January 2010 After this hackfest, we started receiving a lot of contributions to translate the language and the street index rendering logic. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 12 / 46

Hackfest #1 result Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 13 / 46

Hackfest #2 August 2010, Toulouse, France Six developers, seven days Features Complete rewrite of the rendering engine Support multiple layouts (index on the same side as the map, at the bottom or on the side) Selectable standard paper sizes Support for multiple stylesheets (style of renderings) Major rewrite of the web interface, to provide a wizard for the map creation Features implemented, but lack of polishing, so no delivery in production at the end of the hackfest... Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 14 / 46

Hackfest #2 result Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 15 / 46

Server migration, october 2010 Our initial server, having 250 GB of hard disk space, was completely filled with the OpenStreetMap database. Had to migrate all our services on different machines, causing a severe downtime for the service. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 16 / 46

Hackfest #3 February 2012, San Francisco, USA Four developers, two days Things done Investigation of a Mapnik rendering bug that was a block for releasing in production our new version Add some monitoring tools on our servers Polish web interface details Improvements made in August 2010 were still not in production! Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 17 / 46

Hackfest #4 March 2012, Rennes, France Five developers, seven days Objective: put in production all the new features Support for multi-page maps, which allows to render large maps on A4 and A5 paper sizes Integration of several Mapnik stylesheets Many, many fixes in the rendering engine and the web interface On April, 19th, a few weeks after the hackfest, we managed to put all the improvements in production and make it public! Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 18 / 46

Hackfest #4 results Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 19 / 46

Hackfest #4 results Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 20 / 46

Hackfest #4 results Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 21 / 46

Using maposmatic.org (1/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 22 / 46

Using maposmatic.org (2/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 23 / 46

Using maposmatic.org (3/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 24 / 46

Using maposmatic.org (4/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 25 / 46

Using maposmatic.org (5/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 26 / 46

Using maposmatic.org (6/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 27 / 46

Using maposmatic.org (7/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 28 / 46

Using maposmatic.org (8/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 29 / 46

Using maposmatic.org (9/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 30 / 46

Using maposmatic.org (10/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 31 / 46

Using maposmatic.org (11/11) Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 32 / 46

OSM Database (1/2) In order to render maps, Mapnik needs an OSM database converted in a PostGIS schema The format of the main OSM database is different, to allow flexible tags: the conversion process is non-trivial Initial import Planet dumps available in a protobuf-encoded format, at http://planet.openstreetmap.org/pbf/ Converted to the PostGIS schema and pushed into a PostgreSQL database by the osm2pgsql tool, http://wiki.openstreetmap.org/wiki/osm2pgsql Takes 8-10 days on a 6x4 cores Xeon X5670 @ 2.93 Ghz, 24 GB of RAM, a single hard drive Initial file 16 GB, resulting database around 250 GB Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 33 / 46

OSM Database (2/2) Regular updates Minutely updates available. At MapOSMatic, we group them by slots of 15 minutes. Generated using the osmosis tool, from the http://planet. openstreetmap.org/redaction-period/minute-replicate/ server http://wiki.openstreetmap.org/wiki/osmosis Applied to the PostgreSQL database using osm2pgsql Very hard to keep updated: time to apply a 15 minutes update is often around 10 minutes Need to buy a SSD drive. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 34 / 46

OSM Database diagram Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 35 / 46

OCitySMap OCitySMap is a Python module that implements the map and street index rendering A command-line client is provided Uses multiple Python modules: psycopg2 for direct PostgreSQL queries used to build the index of streets and amenities mapnik to do the map rendering pango to do the text rendering cairo to layout the map and index ogr for shapes manipulation Available as a separate project from MapOSMatic Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 36 / 46

OCitySMap architecture Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 37 / 46

OCitySMap example usage Render an administrative boundary, knowing its OSM id:./render.py -t "Chevreuse" -f pdf -s mapquest_eu \ -L fr_fr -l multi_page --paper-format A4 \ --osmid=-943886 Render a geographic area, knowing its bounding box:./render.py -t "Map Title" \ -b 48.7268,1.9946 48.6801,2.0742 Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 38 / 46

OCitySMap installation in a nutshell 1 Install PostgreSQL and PostGIS, create a PostgreSQL user and database 2 Enable PostGIS in the database 3 Build and install osm2pgsql 4 Download and import the OSM data with osm2pgsql 5 Install Mapnik 6 Install Mapnik-OSM, the official OpenStreetMap stylesheet for Mapnik. Requires downloading of coast line data and fonts. 7 Installation and configuration of OCitySMap Fortunately, everything is documented in details in the INSTALL file of the project. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 39 / 46

MapOSMatic MapOSMatic is composed of: 1 A Web interface, written using the Django framework. This interface allows user to create new maps, view existing maps, etc. When a new map is requested, it is put into a rendering queue. 2 A daemon, which processes the jobs in the rendering queue one by one. This daemon uses OCitySMap to do the rendering. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 40 / 46

Languages Both the website and the street index logic requires translations. So far, we have translations in: French Dutch German Spanish Brazilian Portuguese Russian Norvegian Bokmal Italian Catalan Hungarian Polish Indonesian Arabic Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 41 / 46

Hardware setup Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 42 / 46

Statistics 50000 maps render since the service has been launched 5000 to 10000 visitors per month 280 GB of OSM database Number of daily maps rendered Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 43 / 46

Example of usage City of Orange, France, has printed folded maps using MapOSMatic. Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 44 / 46

Future work Allow users to customize the set of amenities and point of interests visible in the index Allow users to customize the rendering style. Maybe by exploring the MapCSS technology. Add a legend and scale on the map. Add more translations Fix more bugs Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 45 / 46

Join the project! Website: http://www.maposmatic.org Blog: http://news.maposmatic.org Savannah project: https://savannah.nongnu.org/projects/maposmatic/ Git repositories OcitySMap: git://git.savannah.nongnu.org/maposmatic/ocitysmap.git MapOSMatic: git://git.savannah.nongnu.org/maposmatic.git Mailing list: https: //lists.nongnu.org/mailman/listinfo/maposmatic-dev IRC channel: #maposmatic on Freenode Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 46 / 46

Conclusion The OSM database and all the tools around it allow a relatively easy access to geographic data Very impressive amount of reuse in this project, thanks to the numerous Python modules available. MapOSMatic is, we think, a good illustration of what is possible thanks to freely available data MapOSMatic is free software, join us and contribute! Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 47 / 46

Questions? http://www.maposmatic.org thomas.petazzoni@enix.org contact@maposmatic.org Thomas Petazzoni () MapOSMatic: free city maps for everyone! July 10th, 2012 48 / 46