public interface SpatialUnit extends OsidPrimitive, Extensible, SpatialUnit
A spatial unit can represent a single position or an area constructed of multiple positions or shapes. The data describing the spatial unit is defined in the record indicated by the record type.
| Modifier and Type | Method and Description |
|---|---|
CoordinateList |
getBoundingCoordinates()
Gets a list of bounding coordinates of this spatial unit.
|
Coordinate |
getCenterCoordinate()
Gets a single corrdinate to represent the center of this spatial unit.
|
SpatialUnitRecord |
getSpatialUnitRecord(Type spatialUnitRecordType)
Gets the spatial unit record corresponding to the given
SpatialUnit record Type. |
getRecordTypes, hasRecordTypecompareTo, equals, getInnerBound, getOuterBound, hashCode, isCloser, isExclusive, isFarther, isInclusive, isLarger, isSmallertoStringCoordinate getCenterCoordinate()
mandatory - This method must be implemented. CoordinateList getBoundingCoordinates()
mandatory - This method must be implemented. SpatialUnitRecord getSpatialUnitRecord(Type spatialUnitRecordType)
SpatialUnit record Type. The
spatialUnitRecordType may be the Type returned
in getRecordTypes() or any of its parents in a
Type hierarchy where
hasRecordType(spatialUnitRecordType) is true .spatialUnitRecordType - the type of spatial unit record to
retrieveNullArgumentException - spatialUnitRecordType
is null UnsupportedException -
hasRecordType(spatialUnitRecordType) is false
mandatory - This method must be implemented.