<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Phil,<br>
      <br>
      CH shortcuts are enabled by default in the example configuration
      and so it assumes a LevelGraphStorage. Turn this config off or use
      the Java code to load it:<br>
      <br>
      hopper.setCHShortcuts(true, true)<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
    </div>
    <blockquote cite="mid:cb1c1ed95e39474ca58dffdd8b3f3f6d@pgwelch.info"
      type="cite">
      <p>Hi,</p>
      <p>I've been following the guide
        <a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/wiki/Developers">https://github.com/graphhopper/graphhopper/wiki/Developers</a>. I
        can build a graph by calling this in cygwin:</p>
      <p>./graphhopper.sh web europe_germany_berlin.osm</p>
      <p>I then try loading it in code using:</p>
      <p>GraphHopperAPI gh = new GraphHopper().forServer();<br>
gh.load("D:\\Processing\\Graphhopper\\graphhopper\\europe_germany_berlin-gh");</p>
      <p>but it gives me this exception:</p>
      <p>Exception in thread "main" java.lang.IllegalStateException:
        Cannot load the graph - it wasn't create via
        com.graphhopper.storage.GraphStorage!
        D:\Processing\Graphhopper\graphhopper\europe_germany_berlin-gh/</p>
      <p>which happens when it checks the first int from the header of
        the nodes DataAccess object against the hashcode of the
        GraphStorage class name.</p>
      <p>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?</p>
      <p>many thanks</p>
      <p>Phil</p>
      <div> </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/graphhopper">http://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>