Interface | osid.mapping.LocationSpatialSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving locations through spatial queries. This lookup session defines several views:
The methods Locations may have an additional records indicated by
their respective record types. The record may not be accessed
through a cast of the | ||
Method | getMapId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Map Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getMap | ||
Description |
Gets the | ||
Return | osid.mapping.Map | the map | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupLocations | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeLocationView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryLocationView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedMapView | ||
Description |
Federates the view for methods in this session. A federated view will include locations in maps which are children of this map in the map hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedMapView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this map only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getLocationByCoordinate | ||
Description |
Gets the closest bounding location of the given coordinate. | ||
Parameters | osid.mapping.Coordinate | coordinate | a coordinate |
Return | osid.mapping.Location | the returned Location | |
Errors | NULL_ARGUMENT | coordinate is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | coordinate not supported | ||
Compliance | mandatory | This method must be implemented. | |
Method | getLocationsByCoordinates | ||
Description |
Gets the closest bounding locations in the given coordinate list. In plenary mode, all locations are returned for each supplied coodrinate or an error results. In comparative mode, the returned list may omit inaccessible locations or reorder them. | ||
Parameters | osid.mapping.CoordinateList | coordinates | a coordinate list |
Return | osid.mapping.LocationList | the returned Locations | |
Errors | NULL_ARGUMENT | coordinates is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | a coordinate is not supported | ||
Compliance | mandatory | This method must be implemented. | |
Method | getLocationsInSpatialUnit | ||
Description |
Gets the locations that are included inside the given spatial unit. In plenary mode, all locations are returned or an error results. | ||
Parameters | osid.mapping.SpatialUnit | spatialUnit | a spatial unit |
Return | osid.mapping.LocationList | the returned Locations | |
Errors | NULL_ARGUMENT | spatialUnit is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | spatial unit not supported | ||
Compliance | mandatory | This method must be implemented. | |
Method | getLocationsOverlappingSpatialUnit | ||
Description |
Gets the locations that are included inside or touch the given spatial unit. In plenary mode, all locations are returned or an error results. | ||
Parameters | osid.mapping.SpatialUnit | spatialUnit | a spatial unit |
Return | osid.mapping.LocationList | the returned Locations | |
Errors | NULL_ARGUMENT | spatialUnit is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | spatial unit not supported | ||
Compliance | mandatory | This method must be implemented. |