|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.CRSRegistry
public class CRSRegistry
The CRSRegistry
class wraps the access to the CRSProvider in the org.deegree.crs package by supplying a
static create
method, thus encapsulating the access to the CoordinateSystems.
Constructor Summary | |
---|---|
CRSRegistry()
|
Method Summary | |
---|---|
static Transformation |
getTransformation(String providerName,
CoordinateSystem sourceCRS,
CoordinateSystem targetCRS)
Retrieve a Transformation (chain) which transforms coordinates from the given source into the given
target crs. |
static Transformation |
getTransformation(String providerName,
String id)
Get a Transformation with given id, or null if it does not exist. |
static CoordinateSystem |
lookup(CoordinateSystem realCRS)
Wrapper for the private constructor of the org.deegree.crs class. |
static CoordinateSystem |
lookup(CRSCodeType name)
Get a real coordinate system from the default provider. |
static CoordinateSystem |
lookup(String name)
Creates a CRS from the given name, if no CRS was found an UnkownCRSException will be thrown. |
static CoordinateSystem |
lookup(String providerName,
CRSCodeType name)
Get a 'real' coordinatesystem from the backend. |
static CoordinateSystem |
lookup(String providerName,
String name)
Creates a CRS from the given name using the given provider, if no CRS was found an UnkownCRSException will be thrown. |
static CoordinateSystem |
lookupDummyCRS(String name)
Wrapper for the private constructor to create a dummy projected crs with no projection parameters set, the standard wgs84 datum and the given optional name as the identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRSRegistry()
Method Detail |
---|
public static CoordinateSystem lookup(String providerName, String name) throws UnknownCRSException
providerName
- to be used for the creation of the crs.name
- of the crs, e.g. EPSG:31466
UnknownCRSException
- if the crs-name is not knownpublic static CoordinateSystem lookup(String providerName, CRSCodeType name) throws UnknownCRSException
providerName
- name
-
UnknownCRSException
public static Transformation getTransformation(String providerName, String id)
Transformation
with given id, or null
if it does not exist.
providerName
- to use.id
- of the Transformation.
null if no such transformation is found.
public static Transformation getTransformation(String providerName, CoordinateSystem sourceCRS, CoordinateSystem targetCRS) throws IllegalArgumentException, TransformationException
Transformation
(chain) which transforms coordinates from the given source into the given
target crs. If no such Transformation
could be found or the implementation does not support inverse
lookup of transformations null will be returned.
- Parameters:
providerName
- to use.sourceCRS
- start of the transformation (chain)targetCRS
- end point of the transformation (chain).
- Returns:
- the given
Transformation
or null if no such transformation was found.
- Throws:
TransformationException
IllegalArgumentException
public static CoordinateSystem lookup(String name) throws UnknownCRSException
name
- of the crs, e.g. EPSG:4326
UnknownCRSException
- if the crs-name is not knownpublic static CoordinateSystem lookup(CRSCodeType name) throws UnknownCRSException
name
-
UnknownCRSException
public static CoordinateSystem lookup(CoordinateSystem realCRS)
realCRS
- to wrap
public static CoordinateSystem lookupDummyCRS(String name)
name
- optional identifier, if missing, the word 'dummy' will be used.
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |