cvvergara / osm2pgrouting

Import tool for OpenStreetMap data to pgRouting database
http://www.pgrouting.org
GNU General Public License v2.0
0 stars 0 forks source link

add a force="yes" on the configuration #7

Open cvvergara opened 8 years ago

cvvergara commented 8 years ago

for example to override completelty the information for a pedestrian

select * from myschema.config_classes ;
 config_id | tag_key  |   tag_value   | priority | default_maxspeed 
-----------+----------+---------------+----------+------------------
       301 | barrier  | kerb          |        1 |               13
       201 | building | yes           |        1 |               13
       115 | highway  | footway       |      2.5 |                5
       113 | highway  | living_street |        3 |                2
       117 | highway  | pedestrian    |      2.5 |                5
       112 | highway  | residential   |      2.5 |                5
       119 | highway  | road          |        5 |                5
       114 | highway  | service       |      2.5 |                5
       116 | highway  | steps         |      2.5 |                5
       118 | highway  | unclassified  |        3 |                9
cvvergara commented 8 years ago
  <type name="highway" id="1">
    <class name="residential" id="112"  priority="2.5" maxspeed="5" />
    <class name="living_street" id="113"  priority="3" maxspeed="2" />
    <class name="service" id="114"  priority="2.5" maxspeed="5" />
cvvergara commented 8 years ago
type name="highway" id="1">
    <class name="residential" id="112"  priority="2.5" maxspeed="5" force="yes" />
    <class name="living_street" id="113"  priority="3" maxspeed="2" force="yes"/>
    <class name="service" id="114"  priority="2.5" maxspeed="5" force="yes"/>