openstreetmap louis liu

52
The technical overview of Open Street Map 劉俊宏 [email protected]

Upload: aidiq

Post on 06-Jul-2015

314 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: OpenStreetMap   louis liu

The technical overview of Open Street Map

劉俊宏[email protected]

Page 2: OpenStreetMap   louis liu

What is OpenStreetMap?

Page 3: OpenStreetMap   louis liu

OpenStreetMap (OSM) follows a similar concept as Wikipedia does, but for maps and other geographic facts.

This information then gets uploaded to OpenStreetMap's central database from where it can be further modified, corrected and enriched by anyone who notices missing facts or errors about the area.

Page 4: OpenStreetMap   louis liu

Anyone can freely download and use the full information for any purpose they like under an open source license.

Page 5: OpenStreetMap   louis liu

http//www.openstreetmap.org/

Page 6: OpenStreetMap   louis liu
Page 7: OpenStreetMap   louis liu

Slippy Map, the map viewer.

Potlatch, the online map editor.

Export, export map data to xml data, image, or embedded html.

Mapper system

Account setting, query other mappers' information, sending/receiving messages, upload GPS traces, writing diaries...

Page 8: OpenStreetMap   louis liu

Slippy MapBase Layer:

MapnikThe default map.

OsmarenderThe alternative map.

Cycle MapThe map for cycling.

NoNameFine ways without naming.

OverlaysData

View OSM data and it's edit history.

Page 9: OpenStreetMap   louis liu

The Major Component of OSM system

Page 10: OpenStreetMap   louis liu

Data Source

Page 11: OpenStreetMap   louis liu

GPS traces, the major data source of OSM.

Page 12: OpenStreetMap   louis liu

Upload GPS Traces

http://www.osm.org/traces/tag/Taiwan

If you do not want your GPX points to be seen by anybody else, DO NOT upload tracks.

Must be GPX (gziped or flat) file format.

GPX trace file should consist of track points with valid time stamp.

`

Page 13: OpenStreetMap   louis liu

Other data source

Yahoo! Aerial Imagery

Yahoo! have agreed to let OSM use their aerial imagery for the purposes of tracing.

It is possible to sketch in the road layout for large expanses of urban areas, without going there.

Cirerone Mapped Taipei with Yahoo! Aerial Imagery.

Open Aerial Map

The site is currently offline.

Page 14: OpenStreetMap   louis liu

Convert from other open map data

TIGER

Tiger, Topologically Integrated Geographic Encoding and Referencing system data for US streets, produced by the US Census Bureau, is a public domain data source.

AND

Automotive Navigation Data donated the entire streetmap of the netherlands.

Page 15: OpenStreetMap   louis liu

DO NOTCopy from copyrighted map!

Page 16: OpenStreetMap   louis liu

Basic ElementNode

Nodes consist of latitude and longitude.

Nodes are needed to define a way, but a node can also be a stand alone unconnected point.

Standalone nodes should always have at least one Tag.

Nodes forming part of a way open do not have tags themselves.

Page 17: OpenStreetMap   louis liu

Way

A way is an ordered interconnection of at least 2 nodes that describe a linear feature such as a street, railway, river …

Ways should be split into shorter sections if different properties exist.

Nodes can be members of multiple ways.

Area (Closed way)

Areas are not separate elements, they are merely closed ways that represent an area.

Page 18: OpenStreetMap   louis liu

Relation

A relation can group other elements together, nodes, ways and maybe even other relations.

Relations can be used to represents things like cycle routes, bus routes, turn restrictions, boundaries....

Page 19: OpenStreetMap   louis liu

Tag

A property attached to a node, way, area or relation.

These properties are Key-Value pairs describing the element.

Page 20: OpenStreetMap   louis liu

To ensure that applications and other users of the OSM data can interpret the tags in a meaningful way it is recommended but not required to follow certain tagging standards documents.http://wiki.osm.org/wiki/Map_Features

http://wiki.osm.org/wiki/Tw:Taiwan_road_tagging

http://wiki.osm.org/wiki/tagwatch

Page 21: OpenStreetMap   louis liu

Key Valuehighway tertiary

ref TC-26name Dama Rd.

name:zh 大馬路

is_in Waipu Township, Taichung County

is_in:zh 台中縣外埔鄉

Page 22: OpenStreetMap   louis liu

Editor

Page 23: OpenStreetMap   louis liu

Potlatch

A Flash based online Map editor, you can found at “Edit”tab on home page.

Potlatch is intended as as an easy-to-learn editing environment for drawing ways and adding metadata to existing ways.

Page 24: OpenStreetMap   louis liu

Merkaartor

OSM Editor for UNIX, Windows and OS X.

Map view near-WYSIWYG, anti-aliased, with road names.

Live connection to your GPS.

Page 25: OpenStreetMap   louis liu

JOSM

Java OpenStreetMap Editor

JOSM is a feature-rich editor.

Highly configurable and extensible via plug-ins.

Can work off-line using download data files.

Work with local photo and GPX files.

It's POWERFUL but Not Easy to learn.

Page 26: OpenStreetMap   louis liu

Edit map with GPS tag image.

Page 27: OpenStreetMap   louis liu

Using Yahoo! Aerial Image as background.

Page 28: OpenStreetMap   louis liu

ArcGIS Editor for OpenStreetMap

http://martenhogeweb.blogspot.com/2010/07/

announcing-arcgis-editor-for.html

http://tinyurl.com/2wgmhu5

Page 29: OpenStreetMap   louis liu

API and Back End System

Page 30: OpenStreetMap   louis liu

OSM API

OpenStreetMap has an API for fetching and saving from/to OpenStreetMap database.

The API is the server component to which REST requests are addressed. The REST requests take the form of HTTP GET, PUT, POST, and DELETE messages. Any payload is in XML form, using the MIME type "text/xml" and UTF-8 character encoding.

Page 31: OpenStreetMap   louis liu

All of the calls to the API which update, create or delete data have to be made by an authenticated and authorized user. Authentication works by using HTTP Basic authentication using an user name and password or by using OAuth.

Page 32: OpenStreetMap   louis liu

ADD/REMOVE/UPDATE elements.

Download data inside a given bounding box.

Query history of elements.

Retrieving GPS points/traces.

.....

Page 33: OpenStreetMap   louis liu

ChangesetsTo make it easier to identify related changes the concept of changesets is introduced.

Every modification of one or more of the elements has to reference an open changeset.

Changesets are specifically not atomic - elements added within a changeset will be visible to other users before the changeset is closed.

Page 34: OpenStreetMap   louis liu

Changesets facilitate the implementation of rollbacks. By providing insight into the changes committed by a single person it becomes easier to identify the changes made, rather than just rolling back a whole region.

Page 35: OpenStreetMap   louis liu

Current Version is 0.6.

http://wiki.osm.org/wiki/API_v0.6

For testing:

http://api06.dev.openstreetmap.org

Page 36: OpenStreetMap   louis liu

OSM API Server

The Rails port is the current version of OSM's server code - API, web front end and everything that runs on www.openstreetmap.org.

Runs on Unix-like systems.

Page 37: OpenStreetMap   louis liu

Planet.osm

a snapshot of the OpenStreetMap database.

the latest revision of the nodes, ways, relations and changesets

an XML formatted .osm file.

http://planet.openstreetmap.org/

Current file size: 8.3GB

(Bzip2 compressed, 2010 04/12)

Extrats: partical area of planet.osm

Osmosis and other tools can handle it.

Page 38: OpenStreetMap   louis liu

Rendering System

Page 39: OpenStreetMap   louis liu

Mapnik

http://mapnik.org/

Mapnik is a open source toolkit for rendering maps.

OSM uses Mapnik to render 256 × 256 pixels tiles.

Use Postgres as data backend and import osm data source to db with osm2sql.

A template.xml controls style sheet.

It's need several hours to generate Taiwan nearby tiles.

Page 40: OpenStreetMap   louis liu

mod_tile and rendered

An Apache module which is responsible for requesting tiles.

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

If the tiles are already rendered then Apache will serve them efficiently from the filesystem.

Page 41: OpenStreetMap   louis liu

Tile@Home

We all heart SETI@Home.

A Distributed tile render system.

There are many people who run the client software on their computers that ask what map-tile to render and contribute their results back to the server.

Osmarender and http://informatinofreeway.org/ uses T@H.

Page 42: OpenStreetMap   louis liu

Play with planet.osm and render style sheetto meet your need.

Page 43: OpenStreetMap   louis liu

OpenCycleMap.org

Page 44: OpenStreetMap   louis liu

Mapper Community

Page 45: OpenStreetMap   louis liu

wiki.openstreetmap.org

Mediawiki is OSM's document system.

News.

Instructions for Mapping.

License information and other issues.

Development information.

Wiki project pages for mapping different countries or cities.

References for map features (tags).

A voting system.

Page 46: OpenStreetMap   louis liu

Contact other mappers

Mail List

OSM-talk, talk-tw, osm-dev......

Send Message

Send message in http//osm.org.

Discussion in wiki's “talk page”

Join local mapper group

Map Party is fun!

Page 47: OpenStreetMap   louis liu

Open Street Map and Open Source

Develop tools, Database, rendering tools... are all open source software.

OSM's applications and sites are also open sourced.

Fetch the source code: svn co http://svn.openstreetmap.org/

Page 48: OpenStreetMap   louis liu

Why use open source

Use open source software to process open data.

Standing on Shoulders of Giants.

Save data in open file format.

Free from proprietary format.

Users won't buy 'professional tool' to use the open geography data.

Page 49: OpenStreetMap   louis liu

To Be A Mapper

Wiki is your friend

Beginner's Guide

Map Features

Editing Standards and Conventions

Mapping techniques

Join local mapper group

Page 50: OpenStreetMap   louis liu

2010 08/07 Map Party @Tainan

http://registrano.com/events/b2daeb

Page 51: OpenStreetMap   louis liu

To Be A Developer

Wiki is your friend

#OSM-dev list.

Read The Find Manual.

Read The Find Source Code.

Observe develop tools' license.

Do NOT break OSM license and policy.

Ask the community for help!

Page 52: OpenStreetMap   louis liu

Thank you for participation