Package ca.spatial.table
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
FieldsModifier and TypeFieldDescriptionstatic int
Constant defining the Collection geometry typestatic int
Constant defining the Curve geometry typestatic int
Constant defining the Floating point Raster typestatic int
Constant defining the Integer Raster typestatic int
Constant defining the Multipoint geometry typestatic int
Constant defining the Null geometry typestatic int
Constant defining the Point geometry typestatic int
Constant defining the Polygon geometry typestatic int
Constant defining the Polyline geometry typestatic int
Constant defining the Surface geometry type -
Method Summary
Modifier and TypeMethodDescriptionboolean
Query if this SpatialStore is capable of building a spatial indexdouble[][]
getCoordinates(int row)
Get a list of raw coordinates for the points in this shape.Get the enclosing rectangle of all features in the tablegetExtent2D(int row)
Get the enclosing rectangle of a featuregetExtent2D(int row, int period)
Get the enclosing rectangle of a featureObtain projection information.int
Get the number of rows in this tablegetSelection(Extent2D extent)
Get a set of records that fall within the selection rectangle.getShape(int row)
Get the shape object for a individual featuregetShape(int row, int period)
Get the shape object for a individual featuregetTitle()
Get the title of this tableint
getType()
Get the type of this table.boolean
Query if this SpatialStore has a spatial indexvoid
Request that this SpatialStore create a spatial indexrecords()
Return an Iterator for all the records in the tablerecords(double x, double y, double width, double height)
Return an Iterator for the records that fall within the selection rectangleReturn an Iterator for the records that fall within the selection rectangle
-
Field Details
-
NULL
static final int NULLConstant defining the Null geometry type- See Also:
- Constant Field Values
-
POINT
static final int POINTConstant defining the Point geometry type- See Also:
- Constant Field Values
-
CURVE
static final int CURVEConstant defining the Curve geometry type- See Also:
- Constant Field Values
-
POLYLINE
static final int POLYLINEConstant defining the Polyline geometry type- See Also:
- Constant Field Values
-
SURFACE
static final int SURFACEConstant defining the Surface geometry type- See Also:
- Constant Field Values
-
POLYGON
static final int POLYGONConstant defining the Polygon geometry type- See Also:
- Constant Field Values
-
COLLECTION
static final int COLLECTIONConstant defining the Collection geometry type- See Also:
- Constant Field Values
-
MULTIPOINT
static final int MULTIPOINTConstant defining the Multipoint geometry type- See Also:
- Constant Field Values
-
INT_RASTER
static final int INT_RASTERConstant defining the Integer Raster type- See Also:
- Constant Field Values
-
FLOAT_RASTER
static final int FLOAT_RASTERConstant defining the Floating point Raster type- See Also:
- Constant Field Values
-
-
Method Details
-
getTitle
String getTitle()Get the title of this table -
records
Return an Iterator for all the records in the table -
records
Return an Iterator for the records that fall within the selection rectangle -
records
Return an Iterator for the records that fall within the selection rectangle -
getType
int getType() -
getRowCount
int getRowCount()Get the number of rows in this table -
getShape
Get the shape object for a individual feature- Parameters:
row
- The record of interest- Returns:
- A shape object
-
getShape
Get the shape object for a individual feature- Parameters:
row
- The record of interestperiod
- The period of interest- Returns:
- A shape object
-
getExtent2D
Get the enclosing rectangle of a feature- Parameters:
row
- The record of interest- Returns:
- A rectangle
-
getExtent2D
Get the enclosing rectangle of a feature- Parameters:
row
- The record of interestperiod
- The period of interest- Returns:
- A rectangle
-
getExtent2D
Extent2D getExtent2D()Get the enclosing rectangle of all features in the table- Returns:
- A rectangle
-
getSelection
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
Request that this SpatialStore create a spatial index- Throws:
Exception
-