org.deegree_impl.gml
Class TransformationFactory

java.lang.Object
  extended byorg.deegree_impl.gml.TransformationFactory

public class TransformationFactory
extends java.lang.Object

A Tranformation Factory: The Transform object, that this class returns can be used for the transforming. Incoming Data can either be CoordinateSystem or String.

Version:
1.1
Author:
Axel Schaefer

Field Summary
private  ConvenienceCSFactoryFull csFactory
           
private  CoordinateTransformationFactory trFactory
           
 
Constructor Summary
TransformationFactory()
          default constructor: creates a CoordinateTransformationFactory.
 
Method Summary
private  MathTransform getGeogrToProjected(CoordinateSystem src, CoordinateSystem dest)
          retuns a MathTransform object for the transformation of coodinates from a geographic to a projected coodinate systems
private  MathTransform getProjectedToGeogr(CoordinateSystem src, CoordinateSystem dest)
          retuns a MathTransform object for the transformation of coodinates from a projected to a geographic coodinate systems
private  MathTransform getProjectedToProjected(CoordinateSystem src, CoordinateSystem dest)
          retuns a MathTransform object for the transformation of coodinates between two projected coodinate systems
 MathTransform getTransform(CoordinateSystem src, CoordinateSystem dest)
          returns a Transform object that's able to perform a coordinate tranformation from the source- to the destination-coordinate system.
 MathTransform getTransform(java.lang.String src, java.lang.String dest)
          returns a Transform object that's able to perform a coordinate tranformation from the source- to the destination-coordinate system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

csFactory

private ConvenienceCSFactoryFull csFactory

trFactory

private CoordinateTransformationFactory trFactory
Constructor Detail

TransformationFactory

public TransformationFactory()
default constructor: creates a CoordinateTransformationFactory.

Method Detail

getTransform

public MathTransform getTransform(java.lang.String src,
                                  java.lang.String dest)
                           throws java.lang.Exception
returns a Transform object that's able to perform a coordinate tranformation from the source- to the destination-coordinate system. At the moment only transformations between geographic coordinate systems and projected coordinated systems and vice versa are supported.

Parameters:
src - source coordinated system as a String
dest - destination (target) coodinate system as a String
Returns:
an instance of net.ct.Transform
Throws:
java.lang.Exception - will be thrown if the desired transformaion isn't possible

getTransform

public MathTransform getTransform(CoordinateSystem src,
                                  CoordinateSystem dest)
                           throws java.lang.Exception
returns a Transform object that's able to perform a coordinate tranformation from the source- to the destination-coordinate system. At the moment only transformations between geographic coordinate systems geographic and projected coordinated systems and vice versa are supported.

Parameters:
src - source coordinated system
dest - destination (target) coodinate system
Returns:
an instance of net.ct.Transform
Throws:
java.lang.Exception - will be thrown if the desired transformaion isn't possible

getGeogrToProjected

private MathTransform getGeogrToProjected(CoordinateSystem src,
                                          CoordinateSystem dest)
                                   throws java.lang.Exception
retuns a MathTransform object for the transformation of coodinates from a geographic to a projected coodinate systems

Throws:
java.lang.Exception

getProjectedToProjected

private MathTransform getProjectedToProjected(CoordinateSystem src,
                                              CoordinateSystem dest)
                                       throws java.lang.Exception
retuns a MathTransform object for the transformation of coodinates between two projected coodinate systems

Throws:
java.lang.Exception

getProjectedToGeogr

private MathTransform getProjectedToGeogr(CoordinateSystem src,
                                          CoordinateSystem dest)
                                   throws java.lang.Exception
retuns a MathTransform object for the transformation of coodinates from a projected to a geographic coodinate systems

Throws:
java.lang.Exception