Interface SpatialStore

All Known Implementing Classes:
CoverageStore, GeoRelationalStore, HexagonStore, NetworkTable, RouteTable, ShapeFile, ShapeRamCache, ShapeStore

public interface SpatialStore
Prototype for retrieval of spatial information
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    Constant defining the Collection geometry type
    static int
    Constant defining the Curve geometry type
    static int
    Constant defining the Floating point Raster type
    static int
    Constant defining the Integer Raster type
    static int
    Constant defining the Multipoint geometry type
    static int
    Constant defining the Null geometry type
    static int
    Constant defining the Point geometry type
    static int
    Constant defining the Polygon geometry type
    static int
    Constant defining the Polyline geometry type
    static int
    Constant defining the Surface geometry type
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Query if this SpatialStore is capable of building a spatial index
    double[][]
    getCoordinates​(int row)
    Get a list of raw coordinates for the points in this shape.
    Get the enclosing rectangle of all features in the table
    getExtent2D​(int row)
    Get the enclosing rectangle of a feature
    getExtent2D​(int row, int period)
    Get the enclosing rectangle of a feature
    Obtain projection information.
    int
    Get the number of rows in this table
    Get a set of records that fall within the selection rectangle.
    getShape​(int row)
    Get the shape object for a individual feature
    getShape​(int row, int period)
    Get the shape object for a individual feature
    Get the title of this table
    int
    Get the type of this table.
    boolean
    Query if this SpatialStore has a spatial index
    void
    Request that this SpatialStore create a spatial index
    Return an Iterator for all the records in the table
    records​(double x, double y, double width, double height)
    Return an Iterator for the records that fall within the selection rectangle
    records​(Extent2D extent)
    Return an Iterator for the records that fall within the selection rectangle
  • Field Details

    • NULL

      static final int NULL
      Constant defining the Null geometry type
      See Also:
      Constant Field Values
    • POINT

      static final int POINT
      Constant defining the Point geometry type
      See Also:
      Constant Field Values
    • CURVE

      static final int CURVE
      Constant defining the Curve geometry type
      See Also:
      Constant Field Values
    • POLYLINE

      static final int POLYLINE
      Constant defining the Polyline geometry type
      See Also:
      Constant Field Values
    • SURFACE

      static final int SURFACE
      Constant defining the Surface geometry type
      See Also:
      Constant Field Values
    • POLYGON

      static final int POLYGON
      Constant defining the Polygon geometry type
      See Also:
      Constant Field Values
    • COLLECTION

      static final int COLLECTION
      Constant defining the Collection geometry type
      See Also:
      Constant Field Values
    • MULTIPOINT

      static final int MULTIPOINT
      Constant defining the Multipoint geometry type
      See Also:
      Constant Field Values
    • INT_RASTER

      static final int INT_RASTER
      Constant defining the Integer Raster type
      See Also:
      Constant Field Values
    • FLOAT_RASTER

      static final int FLOAT_RASTER
      Constant defining the Floating point Raster type
      See Also:
      Constant Field Values
  • Method Details

    • getTitle

      String getTitle()
      Get the title of this table
    • records

      Iterator<Integer> records()
      Return an Iterator for all the records in the table
    • records

      Iterator<Integer> records(Extent2D extent)
      Return an Iterator for the records that fall within the selection rectangle
    • records

      Iterator<Integer> records(double x, double y, double width, double height)
      Return an Iterator for the records that fall within the selection rectangle
    • getType

      int getType()
      Get the type of this table. Types may be one of POINT, CURVE, POLYLINE, SURFACE, POLYGON, or MULTIPOINT.
    • getRowCount

      int getRowCount()
      Get the number of rows in this table
    • getShape

      GeoShape getShape(int row)
      Get the shape object for a individual feature
      Parameters:
      row - The record of interest
      Returns:
      A shape object
    • getShape

      GeoShape getShape(int row, int period)
      Get the shape object for a individual feature
      Parameters:
      row - The record of interest
      period - The period of interest
      Returns:
      A shape object
    • getExtent2D

      Extent2D getExtent2D(int row)
      Get the enclosing rectangle of a feature
      Parameters:
      row - The record of interest
      Returns:
      A rectangle
    • getExtent2D

      Extent2D getExtent2D(int row, int period)
      Get the enclosing rectangle of a feature
      Parameters:
      row - The record of interest
      period - The period of interest
      Returns:
      A rectangle
    • getExtent2D

      Extent2D getExtent2D()
      Get the enclosing rectangle of all features in the table
      Returns:
      A rectangle
    • getSelection

      BitSet getSelection(Extent2D extent)
      Get a set of records that fall within the selection rectangle.
      Parameters:
      extent - The selection rectangle of interest
      Returns:
      A set of selected records
    • getCoordinates

      double[][] getCoordinates(int row)
      Get a list of raw coordinates for the points in this shape.
      Parameters:
      row - The row of interest
      Returns:
      An array of arrays of coordinate points. Each element in the outer array contains a 'part' of the underlying shape (for example, and island or a multi-part polygon). The inner array index holds the coordinate points of that part.
    • getProjectionInfo

      String getProjectionInfo()
      Obtain projection information.
    • hasSpatialIndex

      boolean hasSpatialIndex()
      Query if this SpatialStore has a spatial index
    • canBuildSpatialIndex

      boolean canBuildSpatialIndex()
      Query if this SpatialStore is capable of building a spatial index
    • makeSpatialIndex

      void makeSpatialIndex() throws Exception
      Request that this SpatialStore create a spatial index
      Throws:
      Exception