|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(CoordinateSystem targetCRS)
Creates a new Transformer object, with the given target CRS. |
protected |
Transformer(CRS targetCRS)
Creates a new Transformer object, with the given target CRS. |
protected |
Transformer(java.lang.String targetCRS)
Creates a new Transformer object, with the given id as the target CRS. |
protected |
Transformer(Transformation definedTransformation)
|
Method Summary | |
---|---|
protected Transformation |
createCRSTransformation(CoordinateSystem 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(CoordinateSystem sourceCRS,
java.util.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(java.lang.String sourceCRS)
Creates a transformation chain, which can be used to transform incoming coordinates (in the given source CRS) into this Transformer's targetCRS. |
CoordinateSystem |
getTargetCRS()
|
CRS |
getWrappedTargetCRS()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Transformer(CoordinateSystem targetCRS) throws java.lang.IllegalArgumentException
targetCRS
- to transform incoming coordinates to.
java.lang.IllegalArgumentException
- if the given CoordinateSystem is null
protected Transformer(java.lang.String targetCRS) throws UnknownCRSException, java.lang.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.
java.lang.IllegalArgumentException
- if the given parameter is null.protected Transformer(CRS targetCRS) throws java.lang.IllegalArgumentException, UnknownCRSException
targetCRS
- to transform incoming coordinates to.
java.lang.IllegalArgumentException
- if the given CoordinateSystem is null
UnknownCRSException
- if the wrapped crs was nullprotected Transformer(Transformation definedTransformation)
definedTransformation
- to use instead of the CRSFactory.
java.lang.IllegalArgumentException
- if the given parameter is null.Method Detail |
---|
protected Transformation createCRSTransformation(CoordinateSystem sourceCRS) throws TransformationException, java.lang.IllegalArgumentException
sourceCRS
- in which the coordinates are defined.
TransformationException
- if no transformation chain could be created.
java.lang.IllegalArgumentException
- if the given CoordinateSystem is null
protected Transformation createCRSTransformation(CoordinateSystem sourceCRS, java.util.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.
java.lang.IllegalArgumentException
- if the given CoordinateSystem is null
protected Transformation createCRSTransformation(java.lang.String sourceCRS) throws TransformationException, java.lang.IllegalArgumentException, UnknownCRSException
sourceCRS
- in which the coordinates are defined.
TransformationException
- if no transformation chain could be created.
java.lang.IllegalArgumentException
- if the given CoordinateSystem is null
UnknownCRSException
- if the given crs name could not be mapped to a valid (configured) crs.public final CoordinateSystem getTargetCRS()
public final CRS getWrappedTargetCRS()
CRS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |