org.deegree.cs.transformations.coordinate
Class DirectTransform
java.lang.Object
org.deegree.cs.CRSIdentifiable
org.deegree.cs.transformations.Transformation
org.deegree.cs.transformations.coordinate.DirectTransform
- All Implemented Interfaces:
- Object, TypedObjectNode, CRSResource
public class DirectTransform
- extends Transformation
The DirectTransform
class wraps the access to a polynomial transformation, by calling it's
applyPolynomial method.
- Version:
- $Revision: 29642 $, $Date: 2011-02-11 13:59:33 +0100 (Fri, 11 Feb 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: lbuesching $
Methods inherited from class org.deegree.cs.transformations.Transformation |
areInverse, canTransform, contains, copyTransformation, createFromTo, doTransform, doTransform, equalOnCRS, equals, getSourceCRS, getSourceDimension, getTargetCRS, getTargetDimension, getTransformationName, getTransformationPath, inverse, isInverseTransform, setSourceCRS |
Methods inherited from class org.deegree.cs.CRSIdentifiable |
addAreaOfUse, addName, checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getId, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hashCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion |
DirectTransform
public DirectTransform(PolynomialTransformation transformation,
CRS sourceCRS,
CRSResource id)
- Parameters:
transformation
- to applysourceCRS
- in which the points will be defined.id
- an identifiable instance containing information about this transformation
DirectTransform
public DirectTransform(PolynomialTransformation transformation,
CRS sourceCRS)
- Parameters:
transformation
- to applysourceCRS
- in which the points will be defined.
doTransform
public List<javax.vecmath.Point3d> doTransform(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)
toString
public String toString()
- Overrides:
toString
in class CRSIdentifiable
getImplementationName
public String getImplementationName()
- Specified by:
getImplementationName
in class Transformation
- Returns:
- the name of the transformation.
Copyright © 2011. All Rights Reserved.