Class GeoIndex


  • public class GeoIndex
    extends Object
    Author:
    Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
    • Constructor Detail

      • GeoIndex

        public GeoIndex()
    • Method Detail

      • add

        public GeoIndex add​(GeoIndex geoIndex)
        Adds the input geoIndex to the current object.
        Parameters:
        geoIndex - , the index
        Returns:
        the instance itself
      • addPolygon

        public void addPolygon​(Polygon X,
                               int latIndex,
                               int longIndex)
        Adds a polygon to an index
        Parameters:
        X - Polygon to add
        latIndex - Index according to latitude
        longIndex - Index according to longitude
      • getSquare

        public GeoSquare getSquare​(int latIndex,
                                   int longIndex)
        Returns the square with the coordinates latIndex, longIndex
        Parameters:
        latIndex - Latitude of the square to return
        longIndex - Longitude of the same
        Returns:
        GeoSquare
      • getIndexes

        public Set<List<Integer>> getIndexes​(Polygon X)
        Parameters:
        X - Polygon whose indexes are required
        Returns:
        Set of all indexes for this polygon