Package com.vividsolutions.jts.index.strtree

Examples of com.vividsolutions.jts.index.strtree.STRtree.build()


    List sections = computeFacetSequences(g);
    for (Iterator i = sections.iterator(); i.hasNext();) {
      FacetSequence section = (FacetSequence) i.next();
      tree.insert(section.getEnvelope(), section);
    }
    tree.build();
    return tree;
  }

  /**
   * Creates facet sequences
View Full Code Here


    List sections = computeFacetSequences(g);
    for (Iterator i = sections.iterator(); i.hasNext();) {
      FacetSequence section = (FacetSequence) i.next();
      tree.insert(section.getEnvelope(), section);
    }
    tree.build();
    return tree;
  }

  /**
   * Creates facet sequences
View Full Code Here

        tree.insert(env, routeId);
      }
    }
   
    for (STRtree tree : _stopTreesByRouteId.values())
      tree.build();
  }

  @Override
  public RoutesBean getRoutesForQuery(SearchQueryBean query)
      throws ServiceException {
View Full Code Here

    for (Map.Entry<CoordinateBounds, STRtree> entry : _treesByBounds.entrySet()) {
      CoordinateBounds b = entry.getKey();
      Envelope env = new Envelope(b.getMinLon(), b.getMaxLon(), b.getMinLat(),
          b.getMaxLat());
      STRtree tree = entry.getValue();
      tree.build();
      parentTree.insert(env, tree);
    }
    parentTree.build();

    return new HierarchicalSTRtree<T>(parentTree);
View Full Code Here

        tree.insert(g.getEnvelopeInternal(), granule);
      }
     
      // force index construction --> STRTrees are built on first call to
      // query
      tree.build();
     
      // save the soft reference
      index=tree;
    }
    catch (Throwable e) {
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.