/** * QuadTree Query * * @param bbox * * * @throws DataSourceException * @throws IOException * @throws TreeException * DOCUMENT ME! */ private Collection queryQuadTree(Envelope bbox) throws DataSourceException, IOException, TreeException { Collection tmp = null; try { QuadTree quadTree=openQuadTree(); if ((quadTree != null) && !bbox.contains(quadTree.getRoot().getBounds())) { tmp = quadTree.search(bbox); if( tmp==null || !tmp.isEmpty()) return tmp; } if( quadTree!=null ) quadTree.close(); }catch (Exception e) { throw new DataSourceException("Error querying QuadTree", e); } return null; }
QuadTree quadTree = openQuadTree(); if(quadTree != null) { LOGGER.warning("Experimental: loading in memory the quadtree for " + shpFiles.get(SHP)); QuadTree quadTree = openQuadTree(); if ((quadTree != null) && !bbox.contains(quadTree.getRoot().getBounds())) {
QuadTree quadTree = openQuadTree(); if(quadTree != null) { LOGGER.warning("Experimental: loading in memory the quadtree for " + shpFiles.get(SHP)); QuadTree quadTree = openQuadTree(); if ((quadTree != null) && !bbox.contains(quadTree.getRoot().getBounds())) {