Class AbstractSpatialIndex
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.index.AbstractSpatialIndex
-
- Direct Known Subclasses:
RTreeIndex
public abstract class AbstractSpatialIndex extends java.lang.Object
Abstract spatial index class. Can be used to build indexing structures on spatial data sets (composed of abstract features). These index structures can be used in edit applications to handle identify operations and others.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Properties
properties
-
Constructor Summary
Constructors Constructor Description AbstractSpatialIndex()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
addEntry(GeoObject feature)
Adds an entry to the indexabstract boolean
create(java.util.Properties props)
Creates the index with the specified propertiesabstract boolean
create(java.util.Properties props, java.util.List<GeoObject> features)
Creates the index with the input features using their MBR's.java.util.Properties
getProperties()
Returns the index propertiesabstract boolean
removeEntry(GeoObject feature)
Removes an entry from the indexabstract java.util.List<GeoObject>
searchEntries(java.awt.geom.Rectangle2D mbr)
Returns all the entry that interact with the giveb MBR
-
-
-
Method Detail
-
getProperties
public java.util.Properties getProperties()
Returns the index properties- Returns:
-
create
public abstract boolean create(java.util.Properties props)
Creates the index with the specified properties- Parameters:
props
-- Returns:
- true if the index was successfully created
-
create
public abstract boolean create(java.util.Properties props, java.util.List<GeoObject> features)
Creates the index with the input features using their MBR's.- Parameters:
props
-features
-- Returns:
- true if the index was successfully created
-
addEntry
public abstract boolean addEntry(GeoObject feature) throws java.lang.Exception
Adds an entry to the index- Parameters:
feature
-- Returns:
- true if the entry was added
- Throws:
java.lang.Exception
-
removeEntry
public abstract boolean removeEntry(GeoObject feature) throws java.lang.Exception
Removes an entry from the index- Parameters:
feature
-- Returns:
- true if the entry could be removed
- Throws:
java.lang.Exception
-
searchEntries
public abstract java.util.List<GeoObject> searchEntries(java.awt.geom.Rectangle2D mbr)
Returns all the entry that interact with the giveb MBR- Parameters:
mbr
-- Returns:
- a list of geo-objects that interact with the MBR
-
-