[GraphHopper] Reg : Creating routing files with our map data

Peter K peathal at yahoo.de
Wed May 22 12:54:54 UTC 2013


> Is Merkaartor tool is good for converting .shp to .osm files.

I don't know merkaartor and I don't think that this will work. How does
such an osm file look like? Can you insert a snippet in your email? Does
it have ways and nodes?

Regards,
Peter.


> Hi,
>
> 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, 
>
>
> $ ./run.sh osm.osm
> ## using java  from C:\Program Files\Java\jdk1.6.0
> ## using existing osm file osm.osm
> ## existing jar found
> target/graphhopper-0.1-SNAPSHOT-jar-with-dependencies.jar
> ## now running com.graphhopper.reader.OSMReader. algo=astar.
> JAVA_OPTS=-XX:PermS
> ize=30m -XX:MaxPermSize=30m -Xmx1000m -Xms1000m
> 2013-05-22 17:18:39,437 [main] INFO  graphhopper.reader.OSMReader -
> start creati
> ng graph from osm.osm
> 2013-05-22 17:18:39,484 [main] INFO  graphhopper.reader.OSMReader -
> using LevelG
> raphStorage|RAMDirectory|5, accepts:CAR, memory:totalMB:992, usedMB:91
> Exception in thread "main" java.lang.IllegalStateException: Expected
> nodes not i
> n bounds: 0
>         at
> com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:271)
>         at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:210)
>         at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:167)
>         at com.graphhopper.reader.OSMReader.osm2Graph(OSMReader.java:141)
>         at com.graphhopper.reader.OSMReader.main(OSMReader.java:65)
> ADMIN1 at ADMIN ~/graphhopper (0.1)
> $
>
> -----
> So kindly tell me good solution to rectify this error and Is
> Merkaartor tool is good for converting .shp to .osm files.





More information about the GraphHopper mailing list