|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.index.SpatialIndex<T> org.deegree.commons.index.RTree<T>
T
- of objects the tree will hold.public class RTree<T>
RTree
Query will return the Objects of the index
The bulk insertion mechanism is an implementation of STRTree: Scott T. Leutenegger, Jeffrey M. Edgington, Mario A. Lopez: STR: A SIMPLE AND EFFICIENT ALGORITHM FOR R-TREE PACKING (1997)
Nested Class Summary | |
---|---|
(package private) static class |
RTree.Entry<T>
|
Field Summary | |
---|---|
(package private) boolean |
outputWarning
|
Constructor Summary | |
---|---|
RTree(Envelope rootEnvelope,
int numberOfObjects)
|
|
RTree(InputStream is)
Rereads this RTree from a serialized file to which is should point. |
Method Summary | |
---|---|
void |
clear()
Removes all objects from this spatial index. |
boolean |
getExtraFlag()
|
boolean |
insert(Envelope envelope,
T object)
Add the given object to the spatial index using the given boundingbox |
void |
insertBulk(List<Pair<Envelope,T>> listOfObjects)
Builds the index from the given objects with their envelope. |
LinkedList<T> |
query(Envelope env)
Query the spatial index with the given envelope and return all objects which intersect with the given boundingbox. |
boolean |
remove(T object)
Removes the given object from this spatial index, using the objects' equals method. |
void |
write(RandomAccessFile output,
boolean extraFlag)
|
Methods inherited from class org.deegree.commons.index.SpatialIndex |
---|
createEnvelope, intersects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
boolean outputWarning
Constructor Detail |
---|
public RTree(Envelope rootEnvelope, int numberOfObjects)
rootEnvelope
- of this rtree.numberOfObjects
- each rectangle shall hold before splitting.public RTree(InputStream is) throws IOException, ClassNotFoundException
is
-
IOException
ClassNotFoundException
Method Detail |
---|
public LinkedList<T> query(Envelope env)
SpatialIndex
query
in class SpatialIndex<T>
env
-
public void insertBulk(List<Pair<Envelope,T>> listOfObjects)
insertBulk
in class SpatialIndex<T>
listOfObjects
- public void write(RandomAccessFile output, boolean extraFlag) throws IOException
output
- extraFlag
-
IOException
public void clear()
SpatialIndex
clear
in class SpatialIndex<T>
public boolean remove(T object)
SpatialIndex
remove
in class SpatialIndex<T>
object
- to be removed
public boolean insert(Envelope envelope, T object)
SpatialIndex
insert
in class SpatialIndex<T>
envelope
- of the objectobject
- to insert
public boolean getExtraFlag()
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |