<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Emux,<br>
      <br>
      that should be indeed done automatically. Would you open an issue
      for it?<br>
      <br>
      It should be simple to implement this via the StorableProperties
      e.g. like we do it for graph.flagEncoders<br>
      <br>
      There are the following properties:<br>
      graph.dimension -> elevation<br>
      prepare.done -> ch<br>
      <br>
      But those internal property names are subject to change at any
      time. We need this functionality in graphhopper.load<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
      On 09.11.2014 10:52, Emux wrote:<br>
    </div>
    <blockquote cite="mid:545F3949.8020706@gmail.com" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Hi Peter,<br>
      <br>
      Is there a way via the API to inspect a graph's properties prior
      loading it?<br>
      <br>
      GraphHopper class has to be initialized properly with setCHEnable,
      setElevation (and now with the turn restrictions too) prior
      calling load method.<br>
      Too many combinations, or else the load will fail.<br>
      <br>
      Right now I catch these exceptions in order to cover all the
      cases, but is there a more elegant solution?<br>
      <br>
      <div class="moz-signature">-- <br>
        <font color="#000000">Emux</font><br>
        <a moz-do-not-send="true"
          href="http://wiki.openstreetmap.org/wiki/Cruiser">Cruiser</a>
        - <a moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29">Atlas</a></div>
    </blockquote>
    <br>
  </body>
</html>