deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.crs.transformations.coordinate
Class NotSupportedTransformation

java.lang.Object
  extended by org.deegree.crs.Identifiable
      extended by org.deegree.crs.transformations.Transformation
          extended by org.deegree.crs.transformations.coordinate.CRSTransformation
              extended by org.deegree.crs.transformations.coordinate.NotSupportedTransformation
All Implemented Interfaces:
java.io.Serializable

public class NotSupportedTransformation
extends CRSTransformation

The NotSupportedTransformation class simply wraps the source and target crs. This transformation doesn't do anything, it only provides an opportunity to create a transformation chain, without losing the source and target information as well as the causality of actually having to implement anything. Note that incoming points are returned immediately.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $
See Also:
Serialized Form

Constructor Summary
NotSupportedTransformation(CoordinateSystem sourceCRS, CoordinateSystem targetCRS)
           
NotSupportedTransformation(CoordinateSystem sourceCRS, CoordinateSystem targetCRS, Identifiable id)
           
 
Method Summary
 java.util.List<javax.vecmath.Point3d> doTransform(java.util.List<javax.vecmath.Point3d> srcPts)
          Do a transformation, e.g. the incoming data will be transformed into other coordinates.
 java.lang.String getImplementationName()
           
 boolean isIdentity()
           
 
Methods inherited from class org.deegree.crs.transformations.Transformation
areInverse, createFromTo, doTransform, doTransform, getSourceCRS, getSourceDimension, getTargetCRS, getTargetDimension, getTransformationName, getTransformationPath, inverse, isInverseTransform, setSourceCRS
 
Methods inherited from class org.deegree.crs.Identifiable
checkForNullObject, checkForNullObject, checkForNullObject, equals, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions, hasID, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotSupportedTransformation

public NotSupportedTransformation(CoordinateSystem sourceCRS,
                                  CoordinateSystem targetCRS,
                                  Identifiable id)
Parameters:
sourceCRS -
targetCRS -
id -

NotSupportedTransformation

public NotSupportedTransformation(CoordinateSystem sourceCRS,
                                  CoordinateSystem targetCRS)
Parameters:
sourceCRS -
targetCRS -
Method Detail

getImplementationName

public java.lang.String getImplementationName()
Specified by:
getImplementationName in class Transformation
Returns:
the name of the transformation.

doTransform

public java.util.List<javax.vecmath.Point3d> doTransform(java.util.List<javax.vecmath.Point3d> srcPts)
                                                  throws TransformationException
Description copied from class: Transformation
Do a transformation, e.g. the incoming data will be transformed into other coordinates.

Specified by:
doTransform in class Transformation
Parameters:
srcPts - the points which must be transformed, expected are following values either, long_1, lat_1, height_1, long_2, lat_2, height_2. or long_1, lat_1, long_2, lat_2
Returns:
the transformed points
Throws:
TransformationException - if a transform could not be calculated.

isIdentity

public boolean isIdentity()
Specified by:
isIdentity in class Transformation
Returns:
true if this transformation doesn't transform the incoming points. (e.g. is the id. matrix)

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org