|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CRSProvider
The CRSProvider
will allow the support for different crs-definitions formats within the crs package. All
implementation should consider the fact that the deegree-crs package will assume all incoming and outgoing
latitude/longitude coordinates in radians. Dependent on the forceXY flag it is possible to set the axis order
to x/y (EAST/NORTH; WEST/SOUTH). If this flag is true and the defined axis order is not x/y, the axis order will be
swapped. By default the defined axis order will be used.
Method Summary | |
---|---|
boolean |
canExport()
|
void |
export(java.lang.StringBuilder sb,
java.util.List<CoordinateSystem> crsToExport)
Exports the crs to the implemented format. |
java.util.List<CRSCodeType[]> |
getAvailableCRSCodes()
This method should be called if one is only interested in the available identifiers and not in the coordinatesystems themselves. |
java.util.List<CoordinateSystem> |
getAvailableCRSs()
This method should be called to see if the provider is able to create all defined crs's, thus verifying the correctness of the configuration. |
CoordinateSystem |
getCRSByCode(CRSCodeType id)
|
CoordinateSystem |
getCRSByCode(CRSCodeType id,
boolean forceXY)
|
CRSIdentifiable |
getIdentifiable(CRSCodeType id)
This method is more general than the getCRSByCode(CRSCodeType) , because it represents a possibility to
return an arbitrary CRSIdentifiable Object from the providers backend. |
Transformation |
getTransformation(CoordinateSystem sourceCRS,
CoordinateSystem targetCRS)
This method is should retrieve a transformation (chain) which transforms coordinates from the given source into the given target crs. |
Method Detail |
---|
Transformation getTransformation(CoordinateSystem sourceCRS, CoordinateSystem targetCRS) throws CRSConfigurationException
null should be returned.
- Parameters:
sourceCRS
- start of the transformation (chain)targetCRS
- end point of the transformation (chain).
- Returns:
- the
Transformation
Object or null
if no such Object was found.
- Throws:
CRSConfigurationException
- if the implementation was confronted by an exception and could not deliver the requested Object. This
exception should not be thrown no Transformation was found, in this case null
should be
returned.
CRSIdentifiable getIdentifiable(CRSCodeType id) throws CRSConfigurationException
getCRSByCode(CRSCodeType)
, because it represents a possibility to
return an arbitrary CRSIdentifiable
Object from the providers backend.
id
- string representation of the resource to retrieve
CRSIdentifiable
Object or null
if no such Object was found.
CRSConfigurationException
- if the implementation was confronted by an exception and could not deliver the requested Object. This
exception should not be thrown if the given id wasn't found, in this case null
should be
returned.CoordinateSystem getCRSByCode(CRSCodeType id) throws CRSConfigurationException
id
- string representation of the CoordinateSystem
null
if no such CRS was found.
CRSConfigurationException
- if the implementation was confronted by an exception and could not deliver the requested crs. This
exception should not be thrown if the given id wasn't found, in this case null
should be
returned.CoordinateSystem getCRSByCode(CRSCodeType id, boolean forceXY) throws CRSConfigurationException
id
- string representation of the CoordinateSystemforceXY
- true if the axis order of the coordinate system should be x/y (EAST/NORTH; WEST/SOUTH); false if the
defined axis order should be used
null
if no such CRS was found.
CRSConfigurationException
- if the implementation was confronted by an exception and could not deliver the requested crs. This
exception should not be thrown if the given id wasn't found, in this case null
should be
returned.java.util.List<CoordinateSystem> getAvailableCRSs() throws CRSConfigurationException
CRSConfigurationException
- if the implementation was confronted by an exception and could not deliver the requested crs. This
exception should not be thrown if no CoordinateSystems were found, in the latter case an empty List (
a list with size == 0 ) should be returned.java.util.List<CRSCodeType[]> getAvailableCRSCodes() throws CRSConfigurationException
CRSConfigurationException
- if the implementation was confronted by an exception and could not deliver the requested crs. This
exception should not be thrown if no CoordinateSystems were found, in the latter case an empty List (
a list with size == 0 ) should be returned.void export(java.lang.StringBuilder sb, java.util.List<CoordinateSystem> crsToExport)
canExport()
before executing this method.
sb
- the StringBuilder which will contain the exported version of the given crs.crsToExport
- the CoordinateSystems to export.canExport()
boolean canExport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |