public interface PathSpatialSession extends OsidSession
This session defines methods for retrieving paths through spatial queries.
This lookup session defines several views:
The methods useFederatedMapView()
and
useIsolatedMapView()
behave as a radio group and one should be
selected before invoking any lookup methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupPaths()
Tests if this user can perform
Path lookups. |
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
PathList |
getPathsAtCoordinate(Coordinate coordinate)
Gets the paths at the given coordinate.
|
PathList |
getPathsAtCoordinates(CoordinateList coordinates)
Gets the paths at the given coordinate list.
|
PathList |
getPathsInSpatialUnit(SpatialUnit spatialUnit)
Gets the paths that are included inside the given spatial unit.
|
PathList |
getPathsOverlappingSpatialUnit(SpatialUnit spatialUnit)
Gets the paths that are included inside or touch the given spatial
unit.
|
SpatialUnitList |
getPathSpatialUnits(Id pathId,
Coordinate from,
Coordinate to)
Gets a list of spatial units between the given coordinates along a
path inclusive.
|
SpatialUnitList |
getPathSpatialUnitsAtResolution(Id pathId,
Coordinate coordinate,
Distance distance,
Distance resolution)
Gets a list of spatial units at the given given distance from a
coordinate along a path inclusive at the given resolution.
|
void |
useComparativePathView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedMapView()
Federates the view for methods in this session.
|
void |
useIsolatedMapView()
Isolates the view for methods in this session.
|
void |
usePlenaryPathView()
A complete view of the
Path returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getMapId()
Map
Id
associated with this
session. Map Id
associated with this sessionmandatory
- This method must be implemented. Map getMap() throws OperationFailedException, PermissionDeniedException
Map
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupPaths()
Path
lookups. A return
of true does not guarantee successful authorization. A return of false
indicates that it is known all methods in this session will result in
a PERMISSION_DENIED.
This is intended as a hint to an
application that may not offer lookup operations to unauthorized
users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativePathView()
mandatory
- This method is must be implemented. void usePlenaryPathView()
Path
returns is desired. Methods
will return what is requested or result in an error. This view is used
when greater precision is desired at the expense of interoperability.mandatory
- This method is must be implemented. void useFederatedMapView()
mandatory
- This method is must be implemented. void useIsolatedMapView()
mandatory
- This method is must be implemented. PathList getPathsAtCoordinate(Coordinate coordinate) throws OperationFailedException, PermissionDeniedException
coordinate
- a coordinate PathList
NullArgumentException
- coordinate
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- coordinate not supportedmandatory
- This method must be implemented. PathList getPathsAtCoordinates(CoordinateList coordinates) throws OperationFailedException, PermissionDeniedException
coordinates
- a coordinate list Paths
NullArgumentException
- coordinates
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- a coordinate is not supportedmandatory
- This method must be implemented. PathList getPathsInSpatialUnit(SpatialUnit spatialUnit) throws OperationFailedException, PermissionDeniedException
spatialUnit
- a spatial unit Paths
NullArgumentException
- spatialUnit
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- spatial unit not supportedmandatory
- This method must be implemented. PathList getPathsOverlappingSpatialUnit(SpatialUnit spatialUnit) throws OperationFailedException, PermissionDeniedException
spatialUnit
- a spatial unit Paths
NullArgumentException
- spatialUnit
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- spatial unit not supportedmandatory
- This method must be implemented. SpatialUnitList getPathSpatialUnits(Id pathId, Coordinate from, Coordinate to) throws NotFoundException, OperationFailedException, PermissionDeniedException
pathId
- a path Id
from
- a coordinateto
- a coordinate SpatialUnits
NotFoundException
- no Path
foundNullArgumentException
- pathId, from
or
to
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- from
or to
not supportedmandatory
- This method must be implemented. SpatialUnitList getPathSpatialUnitsAtResolution(Id pathId, Coordinate coordinate, Distance distance, Distance resolution) throws NotFoundException, OperationFailedException, PermissionDeniedException
pathId
- a path Id
coordinate
- a coordinatedistance
- a distanceresolution
- the resolution SpatialUnits
NotFoundException
- no Path
foundNullArgumentException
- pathId, coordinate,
distance
or resolution
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- from
or to
not supportedmandatory
- This method must be implemented.