|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.cs.transformations.TransformationFactory
public class TransformationFactory
The TransformationFactory class is the central access point for all transformations between different
crs's.
It creates a transformation chain for two given ICoordinateSystems by considering their type. For example the Transformation chain from EPSG:31466 ( a projected crs with underlying geographic crs epsg:4314 using the DHDN datum and the TransverseMercator Projection) to EPSG:28992 (another projected crs with underlying geographic crs epsg:4289 using the 'new Amersfoort Datum' and the StereographicAzimuthal Projection) would result in following Transformation Chain:
| Nested Class Summary | |
|---|---|
static class |
TransformationFactory.DSTransform
Defines the type of transformation to use while switching datums. |
| Constructor Summary | |
|---|---|
TransformationFactory(CRSStore provider)
The default coordinate transformation factory. |
|
| Method Summary | |
|---|---|
Transformation |
createFromCoordinateSystems(ICRS sourceCRS,
ICRS targetCRS)
Creates a transformation between two coordinate systems. |
Transformation |
createFromCoordinateSystems(ICRS sourceCRS,
ICRS targetCRS,
List<Transformation> transformationsToBeUsed)
Creates a transformation between two coordinate systems. |
static IGeographicCRS |
createWGSAlligned(IGeographicCRS sourceCRS)
Create a new geographic crs with the same axis as the wgs. |
static boolean |
isIdentity(Transformation transformation)
True if the transformation is null || it's an identity ( Transformation.isIdentity(). |
void |
setPreferredTransformation(TransformationFactory.DSTransform datumTransform)
Set the default transformation type to use for datum switching. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformationFactory(CRSStore provider)
provider - used to do lookups of transformations| Method Detail |
|---|
public void setPreferredTransformation(TransformationFactory.DSTransform datumTransform)
datumTransform - to be used preferably.
public Transformation createFromCoordinateSystems(ICRS sourceCRS,
ICRS targetCRS)
throws TransformationException,
IllegalArgumentException
sourceCRS - Input coordinate system.targetCRS - Output coordinate system.
sourceCRS to targetCRS.
TransformationException
TransformationException - if no transformation path has been found.
IllegalArgumentException - if the sourceCRS or targetCRS are null.
public Transformation createFromCoordinateSystems(ICRS sourceCRS,
ICRS targetCRS,
List<Transformation> transformationsToBeUsed)
throws TransformationException
sourceCRS - Input coordinate system.targetCRS - Output coordinate system.transformationsToBeUsed -
sourceCRS to targetCRS.
TransformationException
TransformationException - if no transformation path has been found.
IllegalArgumentException - if the sourceCRS or targetCRS are null.public static final IGeographicCRS createWGSAlligned(IGeographicCRS sourceCRS)
sourceCRS -
public static final boolean isIdentity(Transformation transformation)
Transformation.isIdentity().
transformation - to check for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||