<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 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 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 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>
<br>
<br>
<fieldset></fieldset>
<br>
</div></div><div class="im"><pre>_______________________________________________
GraphHopper mailing list
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a href="http://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</div></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
GraphHopper.com Your way is our destination!</pre>
</font></span></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br><br clear="all"><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>