Class LineIntIndex

java.lang.Object
com.graphhopper.storage.index.LineIntIndex

public class LineIntIndex extends Object
  • Constructor Details

  • Method Details

    • loadExisting

      public boolean loadExisting()
    • store

      public void store(InMemConstructionIndex inMem)
    • query

      public void query(BBox queryShape, LocationIndex.Visitor function)
    • query

      public void query(LocationIndex.TileFilter tileFilter, LocationIndex.Visitor function)
    • findEdgeIdsInNeighborhood

      public void findEdgeIdsInNeighborhood(double queryLat, double queryLon, int iteration, IntConsumer foundEntries)
      This method collects edge ids from the neighborhood of a point and puts them into foundEntries.

      If it is called with iteration = 0, it just looks in the tile the query point is in. If it is called with iteration = 0,1,2,.., it will look in additional tiles further and further from the start tile. (In a square that grows by one pixel in all four directions per iteration).

      See discussion at issue #221.

    • getChecksum

      public int getChecksum()
    • getMinResolutionInMeter

      public int getMinResolutionInMeter()
    • setMinResolutionInMeter

      public void setMinResolutionInMeter(int minResolutionInMeter)
    • flush

      public void flush()
    • close

      public void close()
    • isClosed

      public boolean isClosed()
    • getCapacity

      public long getCapacity()
    • setChecksum

      public void setChecksum(int checksum)
    • getSize

      public int getSize()
    • getLeafs

      public int getLeafs()