deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.crs.transformations
Class ProjectionTransform

java.lang.Object
  extended by org.deegree.crs.Identifiable
      extended by org.deegree.crs.transformations.CRSTransformation
          extended by org.deegree.crs.transformations.ProjectionTransform

public class ProjectionTransform
extends CRSTransformation

The ProjectionTransform class wraps the access to a projection, by calling it's doProjection.

Version:
$Revision:$, $Date:$
Author:
Rutger Bezema, last edited by: $Author:$

Field Summary
 
Fields inherited from class org.deegree.crs.transformations.CRSTransformation
isInverse
 
Constructor Summary
ProjectionTransform(ProjectedCRS projectedCRS)
          A projectiontransform with an id set to FROM_geoID_TO_projId
ProjectionTransform(ProjectedCRS projectedCRS, String identifier)
           
ProjectionTransform(ProjectedCRS projectedCRS, String identifier, String version, String description, String areaOfUse)
           
 
Method Summary
 List<javax.vecmath.Point3d> doTransform(List<javax.vecmath.Point3d> srcPts)
          Do a transformation, e.g. the incoming data comes from the sourceCRS and must be transformed to the targetCRS.
 boolean isIdentity()
           
 String toString()
           
 
Methods inherited from class org.deegree.crs.transformations.CRSTransformation
areInverse, createFromTo, doTransform, doTransform, getSourceCRS, getSourceDimension, getTargetCRS, getTargetDimension, getTransformationName, getTransformationPath, inverse, isInverseTransform
 
Methods inherited from class org.deegree.crs.Identifiable
checkForNullObject, checkForNullObject, getAreaOfUse, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectionTransform

public ProjectionTransform(ProjectedCRS projectedCRS,
                           String identifier,
                           String version,
                           String description,
                           String areaOfUse)
Parameters:
projectedCRS - The crs containing a projection.
identifier -
version -
description -
areaOfUse -

ProjectionTransform

public ProjectionTransform(ProjectedCRS projectedCRS,
                           String identifier)
Parameters:
projectedCRS - The crs containing a projection.
identifier -

ProjectionTransform

public ProjectionTransform(ProjectedCRS projectedCRS)
A projectiontransform with an id set to FROM_geoID_TO_projId

Parameters:
projectedCRS - The crs containing a projection.
Method Detail

doTransform

public List<javax.vecmath.Point3d> doTransform(List<javax.vecmath.Point3d> srcPts)
Description copied from class: CRSTransformation
Do a transformation, e.g. the incoming data comes from the sourceCRS and must be transformed to the targetCRS.

Specified by:
doTransform in class CRSTransformation
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

isIdentity

public boolean isIdentity()
Specified by:
isIdentity in class CRSTransformation
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 Identifiable

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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