|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.crs.CRSFactory
public class CRSFactory
The CRSFactory
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 | |
---|---|
CRSFactory()
|
Method Summary | |
---|---|
static CoordinateSystem |
create(CoordinateSystem realCRS)
Wrapper for the private constructor of the org.deegree.model.crs.CoordinateSystem class. |
static CoordinateSystem |
create(java.lang.String name)
Creates a CRS from the given name, if no CRS was found an UnkownCRSException will be thrown. |
static CoordinateSystem |
create(java.lang.String providerName,
java.lang.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 |
createDummyCRS(java.lang.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. |
static Transformation |
getTransformation(java.lang.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(java.lang.String providerName,
java.lang.String id)
Get a Transformation with given id, or null if it does not exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRSFactory()
Method Detail |
---|
public static CoordinateSystem create(java.lang.String providerName, java.lang.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 Transformation getTransformation(java.lang.String providerName, java.lang.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(java.lang.String providerName, CoordinateSystem sourceCRS, CoordinateSystem targetCRS)
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.
public static CoordinateSystem create(java.lang.String name) throws UnknownCRSException
name
- of the crs, e.g. EPSG:4326
UnknownCRSException
- if the crs-name is not knownpublic static CoordinateSystem create(CoordinateSystem realCRS)
realCRS
- to wrap
public static CoordinateSystem createDummyCRS(java.lang.String name)
name
- optional identifier, if missing, the word 'dummy' will be used.
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org