pgRouting

Changeset 241

Show
Ignore:
Timestamp:
09/24/08 11:47:30 (2 months ago)
Author:
daniel
Message:

workshop: osm chapter extended

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/workshop/FOSS4G2008/Docs/04_openstreetmap.chapter

    r240 r241  
    1 OpenStreetMap uses a topological data structure. 
     1= About OpenStreetMap = 
     2 
     3"OpenStreetMap is a project aimed squarely at creating and providing free  
     4geographic data such as street maps to anyone who wants them."  
     5"The project was started because most maps you think of as free actually have  
     6legal or technical restrictions on their use, holding back people from using  
     7them in creative, productive or unexpected ways."  
     8[Source: http://wiki.openstreetmap.org/index.php/Press] 
     9 
     10OpenStreetMap uses a topological data structure: 
    211 
    312 * Nodes are points with a geographic position. 
     
    615 * Tags can be applied to nodes, ways or relations and consist of name=value pairs. 
    716  
    8 That's how nodes ways and relations are specified in a real OSM file: 
    9                  
     17This is how nodes, ways and relations are described in the OpenStreetmap XML 
     18file: 
     19 
     20{{{            
    1021<?xml version='1.0' encoding='UTF-8'?> 
    1122<osm version='0.5' generator='JOSM'> 
     
    5667  ... 
    5768</osm> 
     69}}} 
    5870 
    59 The OSM file can be downloaded from OpenStreetMap website using an API (see http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5), 
    60 or with any software which supports OSM format, for example JOSM. 
     71The OSM data can be downloaded from OpenStreetMap website using an API  
     72(see http://wiki.openstreetmap.org/index.php/OSM_Protocol_Version_0.5), 
     73or with some other OSM tools, for example JOSM editor. 
    6174 
    62 We take only nodes and ways of types and classes specified in mapconfig.xml file to be converted to pgRouting table format: 
     75Note: The API has a download size limitation, which can make it a bit 
     76inconvenient to download extensive areas with many features. 
    6377 
     78When using the osm2pgrouting converter (see later), we take only nodes and ways  
     79of types and classes specified in "mapconfig.xml" file to be converted to  
     80pgRouting table format: 
     81 
     82{{{ 
    6483<?xml version="1.0" encoding="UTF-8"?> 
    6584<configuration> 
     
    7594  </type>   
    7695</configuration>   
     96}}} 
    7797 
    78 Detailed description of all possible types and classes can be found here - http://wiki.openstreetmap.org/index.php/Map_features. 
     98Detailed description of all possible types and classes can be found here: 
     99http://wiki.openstreetmap.org/index.php/Map_features. 
    79100 
     101For Cape Town the OpenStreetMap data is very comprehensive with many details. 
     102A compilation of the greater Cape Town area created with JOSM is available as 
     103capetown_20080829.osm.