osm techniques and developemnt

61
OSM技術、發展與展望 Techniques and Development of OpenStreetMap (OSM) at 中央研究院人文社會科學研究中心 暨地理資訊科學研究專題中心 鄧東波 Dongpo Deng [email protected] Feb. 7. 2012 Tuesday, February 7, 2012

Upload: dongpo-deng

Post on 27-Jan-2015

115 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Osm techniques and developemnt

OSM技術、發展與展望Techniques and Development of

OpenStreetMap (OSM)

at 中央研究院人文社會科學研究中心暨地理資訊科學研究專題中心

鄧東波Dongpo Deng

[email protected]

Feb. 7. 2012

Tuesday, February 7, 2012

Page 2: Osm techniques and developemnt

Forbidden city 2012-01

Snapshot on 2012-1-20Tuesday, February 7, 2012

Page 3: Osm techniques and developemnt

Tuesday, February 7, 2012

Page 4: Osm techniques and developemnt

OSM and me

• Do mapping in central TW and eastern NL

• Edit ‘Map Feature’ (zh-tw)

• Host Taiwanese mapping parties

• My future work for OSM

• Lobby for open geo-data

• Establish TW local chapter of OSM

• Do researches on OSM

• Participate to SotM 2012

Tuesday, February 7, 2012

Page 5: Osm techniques and developemnt

The major components of OSM

• Portal sites

• Editors

• Data sources

• OSM APIs

• Backend databases

• Rendering systems

• Wiki documents

• Mapper communities

Tuesday, February 7, 2012

Page 6: Osm techniques and developemnt

Go to map the world

Tuesday, February 7, 2012

Page 7: Osm techniques and developemnt

• OpenStreetMap (OSM) is non-for-profit foundation

• OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world

• Shared by OdbL 1.0 (Changed from By-SA 2.0 since 2012)

Go to map the world

Tuesday, February 7, 2012

Page 8: Osm techniques and developemnt

Grassroots mapping

• Wiki-style editing environment

• Open License, Open Geo Data

• Volunteered Geographic Information

Tuesday, February 7, 2012

Page 9: Osm techniques and developemnt

OSM can be used for...

• Map browsing,

• Map rendering,

• Searching,

• Reverse geocoding,

• Exporting,

• Online edition.

Tuesday, February 7, 2012

Page 10: Osm techniques and developemnt

A simple way to contribute data

• GPS traces

• Geotagged Photos

• Paper and pen (walking-papers.org)

Tuesday, February 7, 2012

Page 11: Osm techniques and developemnt

As a OSM mapper, you not only upload data but also DRAW the map

• Draw the map via uploaded GPS traces, arial and satellite images, etc

• Edit the data attributes

• Name, e.g. street, building

• Street type

• POI

• Traffic artifact ... ,etc

Tuesday, February 7, 2012

Page 12: Osm techniques and developemnt

Mappers drawing Taipei

Tuesday, February 7, 2012

Page 13: Osm techniques and developemnt

Architecture of OSM

Tuesday, February 7, 2012

Page 14: Osm techniques and developemnt

Map Editors

Tuesday, February 7, 2012

Page 15: Osm techniques and developemnt

Front-end editors• Online

• Potlatch (Popular!)

• Mapzen

• Amenity Editor

• Offine

• JSOM (Popular!)

• Merkaartor

• Plugins QGIS

See more info http://wiki.openstreetmap.org/wiki/Editors

Tuesday, February 7, 2012

Page 16: Osm techniques and developemnt

Polatch2

Tuesday, February 7, 2012

Page 17: Osm techniques and developemnt

Mapzen

mapzen.cloudmade.comTuesday, February 7, 2012

Page 18: Osm techniques and developemnt

Amenity Editor

http://ae.osmsurround.org/ae/indexTuesday, February 7, 2012

Page 19: Osm techniques and developemnt

JSOM

Tuesday, February 7, 2012

Page 20: Osm techniques and developemnt

Merkaator

http://merkaartor.be/Tuesday, February 7, 2012

Page 21: Osm techniques and developemnt

OSM Plugins for QGIS

Tuesday, February 7, 2012

Page 22: Osm techniques and developemnt

Mobile Editors

• Apple iOS

• iPhone

• Symbian

• Nokia

• Andriod

See more details http://wiki.openstreetmap.org/wiki/Software

Tuesday, February 7, 2012

Page 23: Osm techniques and developemnt

Data resources: GPS traces

Tuesday, February 7, 2012

Page 24: Osm techniques and developemnt

Data resources: GPS traces

Tuesday, February 7, 2012

Page 25: Osm techniques and developemnt

Data source: Online Mapping systems

• Oline mapping systems and open geo-data resources

• Yahoo! areal : way, landuse...

• Landsat : main way, large landuse...

• WMS services: OpenArialMap

• Don't copy other map if the geodata contains copyright issues!

Tuesday, February 7, 2012

Page 26: Osm techniques and developemnt

Open GeoData to OSM

• CC-licenced geo-data resources directly import to OSM

• AND (Automotive Navigation Data) : Netherlands, India and China

• TIGER data on USA

• Corine Land Cover (Estonia, Romania, Hungary and France)

• Ordnance Survey (UK)

• County of Brest, France

• National parks (FR)

• ...

Tuesday, February 7, 2012

Page 27: Osm techniques and developemnt

Backend

Tuesday, February 7, 2012

Page 28: Osm techniques and developemnt

Backend database: PostgreSQL

• OSM doesn’t use geometry type of PostgreSQL and geospatial functions of PostGIS.

• OSM API v0.6 is used for the main central OSM DB running on servers.

• http://wiki.openstreetmap.org/wiki/API_v0.6

• Osmosis is used to populate a more general PostgreSQL/PostGIS DB from Planet.osm dump file.

• http://wiki.openstreetmap.org/wiki/Osmosis

Tuesday, February 7, 2012

Page 29: Osm techniques and developemnt

Database schema

TextText

User

Relation & old data

Data

Tuesday, February 7, 2012

Page 30: Osm techniques and developemnt

Tuesday, February 7, 2012

Page 31: Osm techniques and developemnt

Tuesday, February 7, 2012

Page 32: Osm techniques and developemnt

Tuesday, February 7, 2012

Page 33: Osm techniques and developemnt

Geometry model

Tag

NodeWay

Open ployline

Closed ployline

Area

Relation

See detail info http://wiki.openstreetmap.org/wiki/Data_PrimitivesTuesday, February 7, 2012

Page 34: Osm techniques and developemnt

• Key / value

• higway = motorway• name = 福爾摩沙高速公路• ref = Fwy3• maxspeed=110

• Recommended usage

• (wiki:Map Features)

• Consensus (Tagwatch, OSMdoc)

• Homogeneity : data reuse

• Requirement adjust

Map feature

Tuesday, February 7, 2012

Page 35: Osm techniques and developemnt

Rendering system

Tuesday, February 7, 2012

Page 36: Osm techniques and developemnt

Mapnikwww.mapnik.org

• OSM uses Mapnik to render 256 X 256 pixels tiles

• osm2pgsql is used to convert OSM data to postgreSQL for Mapnik rendering

• Map sytles are controlled by stylesheet (XML) files.

• Useful tutorial! https://github.com/mapnik/mapnik/wiki/MapnikTutorials

Tuesday, February 7, 2012

Page 37: Osm techniques and developemnt

Mod tile• Mod tile is a system to serve tiles, for

example to use within a slippy map.

• The implement of Mod file is split into two ports

• mod_tile is a custom Apache module which is responsible for serving tiles and requests the rendering of tiles

• renderd - A rendering daemon which calls mapnik and writes the map tiles to the filesystem

Tuesday, February 7, 2012

Page 38: Osm techniques and developemnt

tile@home

• Tiles@home (short: T@H or tah) is a distributed program to render Osmarender maps.

• T@H has a server software, Tahngo (generation 2), running at the Tiles@home website, which get requests to render tiles from updated mapdata.

Tuesday, February 7, 2012

Page 39: Osm techniques and developemnt

Browsers

Tuesday, February 7, 2012

Page 40: Osm techniques and developemnt

Slippy map• The slippy is an Ajax component. JavaScript runs in the

browser, which dynamically requests tiles from the server in the background (without reloading web page) to give a smooth map browsing experiences.

• The implementation of slippy map is mostly provided by OpenLayers

• The tiles rendering usually comes from two resources

• Mapnik tile rendering

• Osmrender (tiles@home) tile rendering

See details http://wiki.openstreetmap.org/wiki/DevelopTuesday, February 7, 2012

Page 41: Osm techniques and developemnt

Wiki documents

Tuesday, February 7, 2012

Page 42: Osm techniques and developemnt

OSM community

• Three main factors: wiki, mailing lists, mapping party

source: http://vaes9.codedgraphic.com/

Tuesday, February 7, 2012

Page 44: Osm techniques and developemnt

Crisis Map

• Ushahidi.org• shahanafoundation.org

Tuesday, February 7, 2012

Page 45: Osm techniques and developemnt

opencyclemap.org

Tuesday, February 7, 2012

Page 46: Osm techniques and developemnt

histOSM.org

Tuesday, February 7, 2012

Page 47: Osm techniques and developemnt

Real-time train maphttp://kubus.mailspool.nl/spoorkaart/

Tuesday, February 7, 2012

Page 48: Osm techniques and developemnt

Humanitarian Response and OSM

Tuesday, February 7, 2012

Page 49: Osm techniques and developemnt

OSM Humanitarian Data Model

Tuesday, February 7, 2012

Page 50: Osm techniques and developemnt

OSM in Haiti

Before earthquake 7 days after earthquake

Souce: Maron 2010

Tuesday, February 7, 2012

Page 51: Osm techniques and developemnt

Researches on OSM

Tuesday, February 7, 2012

Page 52: Osm techniques and developemnt

OSM participants

Tuesday, February 7, 2012

Page 53: Osm techniques and developemnt

Number of Publications indexed by Google Scholar

Tuesday, February 7, 2012

Page 54: Osm techniques and developemnt

Some research topics on OSM

• data quality, ontologies, top-down process (Muki Haklay)

• 3D models and routing applications (Zipf et al.)

• Neocartography and geovisualization (Chilton, O’Brien)

• Semantic, ontologies (Bishr, Antoniou)

• Technical application (Mooney)

• Trust and general quality (van Exel)

Tuesday, February 7, 2012

Page 55: Osm techniques and developemnt

Types of research with OpenStreetMap

• Muki Haklay (2011) summarized three types

• With OSM - Working close to OSM community to identify research needs and follow them (Wiki Research Ideas page)

• About OSM Learning about OSM, and the community as part of VGI. Comparing it to other projects

• Using OSM–Using the data set to create new applications and explore scientific issues

Muki Haklay (2011) State of the Map EU - OpenStreetMap and GIScience research, State of the Map (SotM) 2011

Tuesday, February 7, 2012

Page 56: Osm techniques and developemnt

Important open questions• Cultural differences and the impact on mapping

• Impact of imports, and the rate and nature of updates of well mapped areas

• Spatial and temporal patterns of engagement and contribution, role of ‘slient’ mappers

• ‘Tyranny of place hypothesis’ and the impact of specific individual on mapping an area

• Internal culture and impact on gender, exclusion and long term engagement

• Legal studies - license use cases and application

• Usability (see Weber and Jones 2011)Source: Muki Haklay (2011)

Tuesday, February 7, 2012

Page 57: Osm techniques and developemnt

Limitations of academic research / collaboration

• Short attention span - the incentives are for novelty, not routine

• Publications are important, so research ideas are welcomed

• Academic institutes can provide power and network (up to a point), not money

• Enthusiastic students are available at specific time cycle

• Across the world, match funding for business, so introductions needed

• Academia careers have thematic focusSource: Muki Haklay (2011)

Tuesday, February 7, 2012

Page 58: Osm techniques and developemnt

Code of engagement for OSM research

• Rule 1– Join a mapping party.

• Rule 2 – Read OSM wiki, books, blogs, and mailing lists

• Rule 3 – Explore the data.

• Rule 4 – Open assess.

• Rule 5 – Open knowledge.

• Rule 6 – Be a critical friend.

• Rule 7 – Teach.

Source: Muki Haklay (2011)Tuesday, February 7, 2012

Page 59: Osm techniques and developemnt

Code of engagement for OSM research

• Maintain links with the OSM community –it will pay off and will help you to identify new research directions.

• Also maintain links with in the VGI research community –even if the term is awkward, the research is valuable.

• Explore comparisons and parallels –it’s important to learn what is going on in other projects.

http://wiki.openstreetmap.org/wiki/Research

Source: Muki Haklay (2011)

Tuesday, February 7, 2012

Page 60: Osm techniques and developemnt

Remarks

• OSM is a wiki-style map based on open sources and open data.

• OSM is a collaboration community. All participants are volunteers.

• More and more services and applications use OSM data and techniques.

• OSM is a good instance of VGI. Many researchers around the world are working on OSM.

Tuesday, February 7, 2012

Page 61: Osm techniques and developemnt

State of the Map 2012 in Tokyo

Taiwan Mapping party on Feb. 18, 2012

Question!

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License

Tuesday, February 7, 2012