Class 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  
    • 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 index
      abstract boolean create​(java.util.Properties props)
      Creates the index with the specified properties
      abstract 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 properties
      abstract boolean removeEntry​(GeoObject feature)
      Removes an entry from the index
      abstract java.util.List<GeoObject> searchEntries​(java.awt.geom.Rectangle2D mbr)
      Returns all the entry that interact with the giveb MBR
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • properties

        protected java.util.Properties properties
    • Constructor Detail

      • AbstractSpatialIndex

        public AbstractSpatialIndex()
    • 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