|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.cs.Transformer
public abstract class Transformer
Abstract base class for all transformers. Stores a target coordinate system and creates Transformation
objects for a given source CRS.
Constructor Summary | |
---|---|
protected |
Transformer(ICRS targetCRS)
Creates a new Transformer object, with the given target CRS. |
protected |
Transformer(String targetCRS)
Creates a new Transformer object, with the given id as the target CRS. |
protected |
Transformer(Transformation definedTransformation)
|
Method Summary | |
---|---|
protected Transformation |
createCRSTransformation(ICRS sourceCRS)
Creates a transformation chain, which can be used to transform incoming coordinates (in the given source CRS) into this Transformer's targetCRS. |
protected Transformation |
createCRSTransformation(ICRS sourceCRS,
List<Transformation> toBeUsedTransformations)
Creates a transformation chain, which can be used to transform incoming coordinates (in the given source CRS) into this Transformer's targetCRS. |
protected Transformation |
createCRSTransformation(String sourceCRS)
Creates a transformation chain, which can be used to transform incoming coordinates (in the given source CRS) into this Transformer's targetCRS. |
ICRS |
getTargetCRS()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Transformer(ICRS targetCRS) throws IllegalArgumentException
targetCRS
- to transform incoming coordinates to.
IllegalArgumentException
- if the given ICoordinateSystem is null
protected Transformer(String targetCRS) throws UnknownCRSException, IllegalArgumentException
targetCRS
- an identifier to which all incoming coordinates shall be transformed.
UnknownCRSException
- if the given crs name could not be mapped to a valid (configured) crs.
IllegalArgumentException
- if the given parameter is null.protected Transformer(Transformation definedTransformation)
definedTransformation
- to use instead of the CRSFactory.
IllegalArgumentException
- if the given parameter is null.Method Detail |
---|
protected Transformation createCRSTransformation(ICRS sourceCRS) throws TransformationException, IllegalArgumentException
sourceCRS
- in which the coordinates are defined.
TransformationException
- if no transformation chain could be created.
IllegalArgumentException
- if the given ICoordinateSystem is null
protected Transformation createCRSTransformation(ICRS sourceCRS, List<Transformation> toBeUsedTransformations) throws TransformationException
sourceCRS
- in which the coordinates are defined.toBeUsedTransformations
- a list of transformations which must be used on the resulting transformation chain.
TransformationException
TransformationException
- if no transformation chain could be created.
IllegalArgumentException
- if the given ICoordinateSystem is null
protected Transformation createCRSTransformation(String sourceCRS) throws TransformationException, IllegalArgumentException, UnknownCRSException
sourceCRS
- in which the coordinates are defined.
TransformationException
- if no transformation chain could be created.
IllegalArgumentException
- if the given ICoordinateSystem is null
UnknownCRSException
- if the given crs name could not be mapped to a valid (configured) crs.public final ICRS getTargetCRS()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |