[GraphHopper] Exception Cannot load the graph - it wasn't create via com.graphhopper.storage.GraphStorage
me at pgwelch.info
me at pgwelch.info
Sun Aug 18 09:12:14 UTC 2013
Hi,
I've been following the guide
https://github.com/graphhopper/graphhopper/wiki/Developers. I can build
a graph by calling this in cygwin:
./graphhopper.sh web europe_germany_berlin.osm
I then try loading it in code using:
GraphHopperAPI gh = new GraphHopper().forServer();
gh.load("D:\Processing\Graphhopper\graphhopper\europe_germany_berlin-gh");
but it gives me this exception:
Exception in thread "main" java.lang.IllegalStateException: Cannot load
the graph - it wasn't create via com.graphhopper.storage.GraphStorage!
D:ProcessingGraphhoppergraphhoppereurope_germany_berlin-gh/
which happens when it checks the first int from the header of the nodes
DataAccess object against the hashcode of the GraphStorage class name.
What am I doing wrong? When you build a graph from the command line does
it create it using a different class, not GraphStorage? Or does Maven
somehow build GraphStorage into a different namespace?
many thanks
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130818/bf9788fe/attachment.html>
More information about the GraphHopper
mailing list