deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.crs.configuration
Interface CRSProvider

All Known Implementing Classes:
DeegreeCRSProvider, PROJ4CRSProvider

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.

Version:
$Revision:$, $Date:$
Author:
Rutger Bezema, last edited by: $Author:$

Method Summary
 boolean canExport()
           
 void export(StringBuilder sb, List<CoordinateSystem> crsToExport)
          Exports the crs to the implemented format.
 List<CoordinateSystem> getAvailableCRSs()
           
 CoordinateSystem getCRSByID(String id)
           
 

Method Detail

getCRSByID

CoordinateSystem getCRSByID(String id)
                            throws CRSConfigurationException
Parameters:
id - string representation of the CoordinateSystem
Returns:
the identified CRS or null if no such CRS was found.
Throws:
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.

getAvailableCRSs

List<CoordinateSystem> getAvailableCRSs()
                                        throws CRSConfigurationException
Returns:
all configured CRSs.
Throws:
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 this an empty List ( a list with size == 0 ) should be returned.

export

void export(StringBuilder sb,
            List<CoordinateSystem> crsToExport)
Exports the crs to the implemented format. Try calling canExport() before executing this method.

Parameters:
sb - the StringBuilder which will contain the exported version of the given crs.
crsToExport - the CoordinateSystems to export.
See Also:
canExport()

canExport

boolean canExport()
Returns:
true if this provider can export a given crs.

deegree 2.2 (2008/12/22 11:33 build-3038-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net