[GraphHopper] How to load *-gh folder? "it wasn't create via com.graphhopper.storage.GraphStorage" exception
西浦 一貴
d-part at hotmail.co.jp
Sun Aug 11 00:51:39 UTC 2013
Hi,
How can I load *-gh folder obtained by graphhopper.sh?I first tried your web version; ./graphhopper.sh web europe_germany_berlin.osmand 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 referedhttps://github.com/graphhopper/graphhopper/wiki/Developers
How can I load *-gh folder ?
Thanks!
Kazuki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130811/9ff4c3aa/attachment.html>
More information about the GraphHopper
mailing list