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

Peter K peathal at yahoo.de
Sat Aug 24 15:38:50 UTC 2013


Hi Kazuki,

ah it is probably the same documentation problem Phil had (I updated the
docs now). Add this statement

hopper.setCHShortcuts(true, true)

before loading. Is it working then?

Regards,
Peter.


> Hi Peter,
>
> I'm not sure which you meant;
> 1) rewrite my program as gh.load("/something/berlin");
> 2) rename berlin-gh folder as berlin, and also rewrite user program
>
> I tried both and got the same exception.
> IllegalStateException: Cannot load the graph
>
> I'll create a issue on github.
> Thanks,
>
> Kazuki
>
>
>
> ------------------------------------------------------------------------
> Date: Fri, 23 Aug 2013 21:56:20 +0200
> From: peathal at yahoo.de
> To: graphhopper at openstreetmap.org
> Subject: Re: [GraphHopper] How to load *-gh folder? "it wasn't create
> via com.graphhopper.storage.GraphStorage" exception
>
> 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 <mailto:GraphHopper at openstreetmap.org>
>     http://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
> _______________________________________________ GraphHopper mailing
> list GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper
>
>
> _______________________________________________
> 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/20130824/ade3b8ad/attachment.html>


More information about the GraphHopper mailing list