<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear all,<br>
    <br>
    I think that something is wrong with osm2pgrouting:<br>
    <br>
    The code (Export2DB.cpp, called by osm2pgrouting.cpp) writes : <br>
    <br>
            if(way->oneway)<br>
                row_data += TO_STR(way->length*1000000);<br>
            else<br>
                row_data += TO_STR(way->length);<br>
    <br>
    (this row_data will be the reverse_cost value)<br>
    but after exporting france.osm I unfortunately observe that this
    condition never seems to be met:<br>
    <br>
     franceRouting=> select count (*) from ways where reverse_cost
    <> length;  <br>
     count <br>
     -------<br>
          0 <br>
     (1 row)<br>
    <br>
    <br>
    So I guess that the condition (way->oneway) is not
    appropriated...<br>
    Does any version deal with this problem (or did I forget something
    when launching osm2pgrouting)?<br>
    <br>
    Thanks again for these great tools;<br>
    HSylvio.<br>
    <br>
    <br>
    BTW, the osm wiki page
    (<a class="moz-txt-link-freetext" href="http://wiki.openstreetmap.org/wiki/Key:oneway">http://wiki.openstreetmap.org/wiki/Key:oneway</a>) explains that<br>
    "Some tags (such as <tt style="background-color:#e0e0f0;
      white-space:pre;" dir="ltr"><a
        href="http://wiki.openstreetmap.org/wiki/Key:junction"
        title="Key:junction">junction</a>=<a
        href="http://wiki.openstreetmap.org/wiki/Tag:junction%3Droundabout"
        title="Tag:junction=roundabout">roundabout</a></tt>, <tt
      style="background-color:#e0e0f0; white-space:pre;" dir="ltr"><a
        href="http://wiki.openstreetmap.org/wiki/Key:highway"
        title="Key:highway">highway</a>=<a
        href="http://wiki.openstreetmap.org/wiki/Tag:highway%3Dmotorway"
        title="Tag:highway=motorway">motorway</a></tt> and others) imply
    <tt style="background-color:#e0e0f0; white-space:pre;" dir="ltr"><strong
        class="selflink">oneway</strong>=yes</tt>. You don't need to add
    a oneway tag<br>
    <h2> <span class="mw-headline" id="Values"> <small>...</small></span></h2>
    <h2><span class="mw-headline" id="Values"><small>Values </small></span></h2>
    <ul>
      <li> <tt style="background-color:#e0e0f0; white-space:pre;"
          dir="ltr"><strong class="selflink">oneway</strong>=yes</tt>
        (discouraged alternative: "true", "1")
      </li>
      <li> <tt style="background-color:#e0e0f0; white-space:pre;"
          dir="ltr"><strong class="selflink">oneway</strong>=no</tt>
        (discouraged alternative: "false", "0")
      </li>
      <li> <tt style="background-color:#e0e0f0; white-space:pre;"
          dir="ltr"><strong class="selflink">oneway</strong>=-1</tt>
        (discouraged alternative: "reverse")
      </li>
    </ul>
    "<br>
    <br>
    I did not understand yet how the XMLParser works, but could the
    problem be solved by changing the type of "bool oneway" to a string
    or char[?] in the "Way" class?<br>
    Best,<br>
    HSylvio.<br>
  </body>
</html>