org.deegree_impl.model.ct
Class ConvenienceTransformFactory

java.lang.Object
  extended byorg.deegree_impl.model.ct.ConvenienceTransformFactory

public class ConvenienceTransformFactory
extends java.lang.Object

factory for

------------------------------------------------------------

Version:
$Revision: 1.9 $ $Date: 2004/03/15 07:34:39 $
Author:
Andreas Poth

Field Summary
private  ConvenienceCSFactory csFactory
           
private static ConvenienceTransformFactory tfFactory
           
private  CoordinateTransformationFactory trFactory
           
 
Constructor Summary
private ConvenienceTransformFactory()
          Creates a new ConvenienceTransformFactory object.
 
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
static ConvenienceTransformFactory getInstance()
           
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

tfFactory

private static ConvenienceTransformFactory tfFactory

csFactory

private ConvenienceCSFactory csFactory

trFactory

private CoordinateTransformationFactory trFactory
Constructor Detail

ConvenienceTransformFactory

private ConvenienceTransformFactory()
Creates a new ConvenienceTransformFactory object.

Method Detail

getInstance

public static ConvenienceTransformFactory getInstance()
Returns:

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 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

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