Examples of IdTracker


Examples of org.openstreetmap.osmosis.core.filter.common.IdTracker

   * @param bboxCtx
   *            The bounding box data.
   */
  private void populateNodeIds(BoundingBoxContext bboxCtx) {
    ReleasableIterator<Long> nodeIdsForTileset;
    IdTracker idTracker;
   
    idTracker = new DynamicIdTracker();
   
    // Search through all nodes in the tile range and add them to a
    // temporary id tracker. This temporary id tracker allows all node ids
    // to be sorted ascendingly prior to retrieving the nodes themselves
    // which improves index performance.
    nodeIdsForTileset = getNodeIdsForTileRange(bboxCtx.minimumTile, bboxCtx.maximumTile);
    try {
      while (nodeIdsForTileset.hasNext()) {
        idTracker.set(nodeIdsForTileset.next());
      }
     
    } finally {
      nodeIdsForTileset.release();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.