OSID Logo
OSID Specifications
mapping package
Version 3.1.0
Interfaceosid.mapping.SpatialUnit
Implementsosid.OsidPrimitive
osid.Extensible
Used Byosid.Metadata
osid.configuration.Value
osid.locale.SpatialUnitConversionSession
osid.mapping.Location
osid.mapping.SpatialUnitList
osid.search.terms.SpatialUnitTerm
Description

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.

MethodgetCenterCoordinate
Description

Gets a single corrdinate to represent the center of this spatial unit.

Returnosid.mapping.Coordinate the center coordinate
Compliancemandatory This method must be implemented.
MethodgetBoundingCoordinates
Description

Gets a list of bounding coordinates of this spatial unit.

Returnosid.mapping.CoordinateList the bounding coordinates
Compliancemandatory This method must be implemented.
MethodgetSpatialUnitRecord
Description

Gets the spatial unit record corresponding to the given 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.

Parametersosid.type.TypespatialUnitRecordType the type of spatial unit record to retrieve
Returnosid.mapping.records.SpatialUnitRecord the spatial unit record
ErrorsNULL_ARGUMENT spatialUnitRecordType is null
UNSUPPORTED hasRecordType(spatialUnitRecordType) is false
Compliancemandatory This method must be implemented.