<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 Robert,<br>
      <br>
      > right now i am trying to get the height attributes to work.<br>
      <br>
      what is your usecase? This one?<br>
      <a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/issues/43">https://github.com/graphhopper/graphhopper/issues/43</a><br>
      <br>
      <br>
      > I've added a height_diff member to the Edge class<br>
      <br>
      Note: the difference needs to be swapped similar to the direction
      flag ...<br>
      <br>
      <br>
      > Why is it pillarId + 3?<br>
      <br>
      The import process is highly optimized regarding memory usage. And
      so we point to pillar nodes via negative id and to tower nodes via
      positive. As -2 to 2 are already used for markers (PILLAR_NODE,
      TOWER_NODE) in phase1 of the import process we need to add the
      offset 3 <br>
      <br>
      pillar nodes are nodes not important for routing. Only for the
      shape of the way only (those GPS coordinates end up in
      graphStorage.wayGeometry).<br>
      <br>
      <br>
      > It should work with my changes, but the flushing step takes a
      very long time when creating the graph. <br>
      <br>
      This should not be related to height. Are the existing graph tests
      still working for your custom implementation?<br>
      <br>
      <br>
      > What's the SEGMENT_SIZE for?<br>
      <br>
      The memory mapped data access as well as the in-memory data access
      need its data in segments to grow without much memory/performance
      issues and to grow beyond 8 or 2GB.<br>
      <br>
      <br>
      > Why is it 1<<20?<br>
      <br>
      This value works reasonable for the server and for Android without
      wasting too much disc space / RAM<br>
      <br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
      <br>
    </div>
    <blockquote cite="mid:51B5A6F0.5060500@fh-kempten.de" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hey Peter,<br>
      <br>
      right now i am trying to get the height attributes to work.<br>
      What I've done so far:<br>
      - I've added a height member to the Node class<br>
      - I've added a height_diff member to the Edge class<br>
      <br>
      So here is my first question: <br>
      <font face="Courier New, Courier, monospace">nodeOsmIdToIndexMap.put(node.id(),

        pillarId + 3);</font><br>
      Why is it pillarId + 3?<br>
      <br>
      And another question:<br>
      What's the SEGMENT_SIZE for? Why is it 1<<20?<br>
      <br>
      It should work with my changes, but the flushing step takes a very
      long time when creating the graph. <br>
      I think it has something to do with the segmentsize.<br>
      <br>
      <br>
      Thanks for your help,<br>
      <br>
      Robert<br>
      <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>