[GraphHopper] How to load *-gh folder? "it wasn't create via com.graphhopper.storage.GraphStorage" exception

Peter K peathal at yahoo.de
Fri Aug 23 19:56:20 UTC 2013


Hi Kazuki,

does the folder without -gh work? If yes, please create an issue.

Regards,
Peter.

> Hi, 
>
> How can I load *-gh folder obtained by graphhopper.sh?
> I first tried your web version; 
> ./graphhopper.sh  web europe_germany_berlin.osm
> and it works fine.
> However, when I try to load generated europe_germany_berlin-gh folder
> (I saw same exception for other region), it raises an exception;
>
> Exception in thread "main" java.lang.IllegalStateException: Cannot
> load the graph - it wasn't create via
> com.graphhopper.storage.GraphStorage!
> /home/kazuki/dev/graphhopper/europe_germany_berlin-gh/
> at
> com.graphhopper.storage.GraphStorage.loadExisting(GraphStorage.java:1310)
> at com.graphhopper.GraphHopper.load(GraphHopper.java:476)
> at GraphTest.main(GraphTest.java:20)
>
> Here is code I wrote;
>         GraphHopperAPI gh = new GraphHopper().forServer();
>         gh.load("/home/kazuki/dev/graphhopper/europe_germany_berlin-gh");
>
> This is a wiki page I refered
> https://github.com/graphhopper/graphhopper/wiki/Developers
>
> How can I load *-gh folder ?
>
> Thanks!
>
> Kazuki
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130823/919f5685/attachment.html>


More information about the GraphHopper mailing list