|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.crs.configuration.DeegreeCRSProvider
public class DeegreeCRSProvider
The DeegreeCRSProvider
reads the deegree crs-config (based on it's own xml-schema) and creates the
CRS's (and their datums, conversion info's, ellipsoids and projections) if requested.
Attention, although urn's are case-sensitive, the deegreeCRSProvider is not. All incoming id's are toLowerCased!
Constructor Summary | |
---|---|
DeegreeCRSProvider()
Empty constructor may only be used for exporting, other usage will result in undefined behavior. |
|
DeegreeCRSProvider(File f)
|
Method Summary | |
---|---|
boolean |
canExport()
|
void |
export(StringBuilder sb,
List<CoordinateSystem> crsToExport)
Exports the crs to the implemented format. |
List<CoordinateSystem> |
getAvailableCRSs()
|
CoordinateSystem |
getCRSByID(String crsId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeegreeCRSProvider()
public DeegreeCRSProvider(File f) throws CRSConfigurationException
f
- to load coordinate system definitions from if null, the standard configuration file will be used, by
searching '/' first and if unsuccessful in org.deegree.crs.configuration.
CRSConfigurationException
- if the give file or the default-crs-configuration.xml file could not be loaded.Method Detail |
---|
public boolean canExport()
canExport
in interface CRSProvider
public CoordinateSystem getCRSByID(String crsId) throws CRSConfigurationException
getCRSByID
in interface CRSProvider
crsId
- 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.public void export(StringBuilder sb, List<CoordinateSystem> crsToExport)
CRSProvider
CRSProvider.canExport()
before executing this method.
export
in interface CRSProvider
sb
- the StringBuilder which will contain the exported version of the given crs.crsToExport
- the CoordinateSystems to export.CRSProvider.canExport()
public List<CoordinateSystem> getAvailableCRSs() throws CRSConfigurationException
getAvailableCRSs
in interface CRSProvider
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.
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net