public class QuadTree extends Object
TODO: example of typical use...
| Constructor and Description |
|---|
QuadTree(int numShapes,
Envelope maxBounds,
IndexFile file)
Constructor.
|
QuadTree(int numShapes,
int maxDepth,
Envelope maxBounds,
IndexFile file)
Constructor.
|
QuadTree(int numShapes,
int maxDepth,
IndexFile file)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(Iterator iter)
Closes this QuadTree after use...
|
IndexFile |
getIndexfile() |
int |
getMaxDepth() |
int |
getNumShapes() |
Node |
getRoot() |
void |
insert(int recno,
Envelope bounds)
Inserts a shape record id in the quadtree
|
void |
insert(Node node,
int recno,
Envelope bounds,
int maxDepth)
Inserts a shape record id in the quadtree
|
void |
registerIterator(Iterator object) |
CloseableIterator<Data> |
search(Envelope bounds) |
void |
setMaxDepth(int maxDepth) |
void |
setNumShapes(int numShapes) |
void |
setRoot(Node root) |
boolean |
trim() |
public QuadTree(int numShapes,
Envelope maxBounds,
IndexFile file)
numShapes - The total number of shapes to indexmaxBounds - The bounds of all geometries to be indexedpublic QuadTree(int numShapes,
int maxDepth,
Envelope maxBounds,
IndexFile file)
numShapes - The total number of shapes to indexmaxDepth - The max depth of the index, must be <= 65535maxBounds - The bounds of all geometries to be indexedpublic QuadTree(int numShapes,
int maxDepth,
IndexFile file)
numShapes - The total number of shapes to indexmaxDepth - The max depth of the index, must be <= 65535public void insert(int recno,
Envelope bounds)
throws StoreException
recno - The record numberbounds - The bounding boxStoreExceptionpublic void insert(Node node, int recno, Envelope bounds, int maxDepth) throws StoreException
node - recno - bounds - maxDepth - StoreExceptionpublic CloseableIterator<Data> search(Envelope bounds) throws StoreException
bounds - StoreExceptionpublic void close(Iterator iter) throws IOException
StoreExceptionIOExceptionpublic boolean trim()
throws StoreException
StoreExceptionpublic int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth - The maxDepth to set.public int getNumShapes()
public void setNumShapes(int numShapes)
numShapes - The numShapes to set.public Node getRoot()
public void setRoot(Node root)
root - The root to set.public void close()
throws StoreException
StoreExceptionpublic void registerIterator(Iterator object)
public IndexFile getIndexfile()
Copyright © 1996–2019 Geotools. All rights reserved.