<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">You'll need to either add the
      appropriate tags e.g.<br>
       <way id="10" uid="85761"><br>
              <nd ref="10"/><br>
              <nd ref="20"/>        <br>
              <nd ref="30"/><br>
              <tag k="highway" v="motorway" /><br>
      </way> <br>
      <br>
      or adapt Car- or FootFlagEncoder. <br>
      <br>
      But it looks your osm does not follow the OSM standard. E.g. one
      way and speed limit are not correctly formatted.<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
    </div>
    <blockquote
cite="mid:CA+DQJAQ9eCbjpUkHPYSieEbG083ypBdK=dvBGZuuwo3wON+9PA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="">Hi,</div>
        <div style=""><br>
        </div>
        <div style="">I had changed the negative values to positive
          numbers, But the problem is not solved same error.. Is this is
          a bug in graphhopper?</div>
        <div style="">An sample snippet is given below.. Thanks</div>
        <div style=""><br>
        </div>
        <div>
          <div><?xml version="1.0"?></div>
          <div><osm generator="Merkaartor 0.17" version="0.6"></div>
        </div>
        <div><node version="0" lon="-110.1046770" lat="40.3887493"
          timestamp="2013-05-22T17:14:41Z" user="" id="3723"
          actor="0"/><br>
        </div>
        <div>  <node version="0" lon="-110.1047642" lat="40.3888130"
          timestamp="2013-05-22T17:14:41Z" user="" id="3724"
          actor="0"/></div>
        <div>  <way version="0" timestamp="2013-05-22T17:14:41Z"
          user="" id="3725" actor="0"></div>
        <div>    <nd ref="3653"/></div>
        <div>    <nd ref="3655"/></div>
        <div>    <nd ref="3723"/><br>
        </div>
        <div>    <nd ref="3724"/></div>
        <div>    <nd ref="913"/></div>
        <div>    <tag k="_OBJECTID_" v="21"/></div>
        <div>    <tag k="_RoadID_" v="6000 NORTH"/></div>
        <div>    <tag k="_S_Type_" v="C1"/></div>
        <div>    <tag k="_Shape_Leng_" v="      0.01669977604"/></div>
        <div>    <tag k="_SPEED_LIM_" v="35"/></div>
        <div>    <tag k="_SURF_TYPE_" v="BLACK TOP"/></div>
        <div>    <tag k="_ALIAS_" v=""/></div>
        <div>    <tag k="_ONE_WAY_" v="N"/></div>
        <div>    <tag k="_RD_SYMBOL_" v=""/></div>
        <div>    <tag k="_SHAPE_Le_1_" v=""/></div>
        <div>    <tag k="_ROADID_1_" v=""/></div>
        <div>    <tag k="_S_TYPE_1_" v=""/></div>
        <div>    <tag k="_SHAPE_LE_2_" v=""/></div>
        <div>    <tag k="_SURF_ID_" v=""/></div>
        <div>  </way></div>
        <div>
          <div>  <bound
            box="40.302076,-110.174272,40.482466,-109.968265" origin="<a
              moz-do-not-send="true"
              href="http://www.openstreetmap.org/api/0.6">http://www.openstreetmap.org/api/0.6</a>"/></div>
          <div></osm></div>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, May 22, 2013 at 6:52 PM, Peter
          K <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>I'll fix that as other software like JOSM also
                produces such osm files.<br>
                See: <a moz-do-not-send="true"
                  href="https://github.com/graphhopper/graphhopper/issues/42"
                  target="_blank">https://github.com/graphhopper/graphhopper/issues/42</a><br>
                <br>
                Regards,<br>
                Peter.<br>
                <br>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div>Hi Gurucharan,<br>
                      <br>
                      your osm did not come through as it was too big (I
                      was just requesting a snippet ;))<br>
                      <br>
                      But I looked at it: negative IDs are not supported
                      from graphhopper. You will need to fix that before
                      the import step or create an issue.<br>
                      <br>
                      Regards,<br>
                      Peter.<br>
                      <br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Hi,
                        <div><br>
                        </div>
                        <div>I am having my map data as a shape files
                          and I want to create the routing files for
                          this shape files. So I convert my shape files
                          to .osm file using Merkaartor and when I
                          execute run.sh command  following error
                          occurs, <br clear="all">
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>
                            <div>$ ./run.sh osm.osm<br>
                            </div>
                            <div>## using java  from C:\Program
                              Files\Java\jdk1.6.0</div>
                            <div>## using existing osm file osm.osm</div>
                            <div>## existing jar found
                              target/graphhopper-0.1-SNAPSHOT-jar-with-dependencies.jar</div>
                            <div>## now running
                              com.graphhopper.reader.OSMReader.
                              algo=astar. JAVA_OPTS=-XX:PermS</div>
                            <div>ize=30m -XX:MaxPermSize=30m -Xmx1000m
                              -Xms1000m</div>
                            <div>2013-05-22 17:18:39,437 [main] INFO
                               graphhopper.reader.OSMReader - start
                              creati</div>
                            <div>ng graph from osm.osm</div>
                            <div>2013-05-22 17:18:39,484 [main] INFO
                               graphhopper.reader.OSMReader - using
                              LevelG</div>
                            <div>raphStorage|RAMDirectory|5,
                              accepts:CAR, memory:totalMB:992, usedMB:91</div>
                            <div>Exception in thread "main"
                              java.lang.IllegalStateException: Expected
                              nodes not i</div>
                            <div>n bounds: 0</div>
                            <div>        at
                              com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:271)</div>
                            <div>        at
                              com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:210)</div>
                            <div>        at
                              com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:167)</div>
                            <div>        at
                              com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:141)</div>
                            <div>        at
                              com.graphhopper.reader.OSMReader.main(OSMReader.java:65)</div>
                            <div>ADMIN1@ADMIN ~/graphhopper (0.1)</div>
                            <div>$</div>
                          </div>
                          <div><br>
                          </div>
                          <div>-----</div>
                          <div>So kindly tell me good solution to
                            rectify this error and Is Merkaartor tool is
                            good for converting .shp to .osm files.</div>
                        </div>
                        <div><br>
                        </div>
                        -- <br>
                        <div><font color="#3366ff">Thanks & Regards,</font></div>
                        <div><span style="color:rgb(153,153,153)">-------------------------------------------------------------------------------------</span></div>
                        <font color="#009900">Gurucharan Vijayakumar,</font>
                        <div><font color="#009900">Software Development
                            Engineer,</font></div>
                        <div><font color="#009900">Chennai.</font></div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </blockquote>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>