public class RTreeIndex extends AbstractSpatialIndex implements java.io.Serializable
| Constructor and Description |
|---|
RTreeIndex()
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(GeoObject feature)
Adds an entry to the index
|
boolean |
create(java.util.Properties props)
Creates the Rtree index with the given properties.
|
boolean |
create(java.util.Properties props, java.util.List<GeoObject> features)
Creates the Rtree object with the input features using their MBR's.
|
RTree |
getTree()
Returns the internal Rtree structure
|
boolean |
removeEntry(GeoObject feature)
Removes an entry from the index
|
java.util.List<GeoObject> |
searchEntries(java.awt.geom.Rectangle2D mbr)
Returns all the entry that interact with the giveb MBR
|
getPropertiespublic RTree getTree()
public boolean create(java.util.Properties props)
create in class AbstractSpatialIndexprops - the tree properties, which are: nodesize: the number of entries per node. Since this is a RAM- resident tree there is no need to match node size with disk pages and node sizes of 5-12 will give best results. Value 8 is used if this property is not defined. minimumFill: the number of entries in a node below which the node is considered underfull and the remaining entries orphaned and reinserted in the tree. If set to 1, there will be no orphaning. Value 1 is used if this property is not defined.
public boolean create(java.util.Properties props,
java.util.List<GeoObject> features)
create in class AbstractSpatialIndexprops - the tree properties, which are: nodesize: the number of entries per node. Since this is a RAM- resident tree there is no need to match node size with disk pages and node sizes of 5-12 will give best results. Value 8 is used if this property is not defined. minimumFill: the number of entries in a node below which the node is considered underfull and the remaining entries orphaned and reinserted in the tree. If set to 1, there will be no orphaning. Value 1 is used if this property is not defined.features -public boolean addEntry(GeoObject feature) throws java.lang.Exception
addEntry in class AbstractSpatialIndexfeature -java.lang.Exceptionpublic boolean removeEntry(GeoObject feature) throws java.lang.Exception
removeEntry in class AbstractSpatialIndexfeature -java.lang.Exceptionpublic java.util.List<GeoObject> searchEntries(java.awt.geom.Rectangle2D mbr)
searchEntries in class AbstractSpatialIndexmbr -