|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.Identifiable org.deegree.crs.transformations.Transformation org.deegree.crs.transformations.coordinate.CRSTransformation org.deegree.crs.transformations.coordinate.ConcatenatedTransform
public class ConcatenatedTransform
The ConcatenatedTransform
class allows the connection of two transformations.
Calling inverse on this transformation will invert the whole underlying transformation chain. For example, if A * (B *C)=D and D is this transformation calling D.inverse() will result in (C.inverse * B.inverse) * A.inverse.
Constructor Summary | |
---|---|
ConcatenatedTransform(Transformation first,
Transformation second)
Creates a transform by concatenating two existing transforms. |
|
ConcatenatedTransform(Transformation first,
Transformation second,
Identifiable id)
Creates a transform by concatenating two existing transforms. |
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. |
Transformation |
getFirstTransform()
|
java.lang.String |
getImplementationName()
|
Transformation |
getSecondTransform()
|
void |
inverse()
This method flags the transformation about it's state. |
boolean |
isIdentity()
|
Methods inherited from class org.deegree.crs.transformations.Transformation |
---|
areInverse, createFromTo, doTransform, doTransform, getSourceCRS, getSourceDimension, getTargetCRS, getTargetDimension, getTransformationName, getTransformationPath, 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 |
---|
public ConcatenatedTransform(Transformation first, Transformation second, Identifiable id)
first
- The first transformation to apply to given points.second
- The second transformation to apply to given points.id
- an identifiable instance containing information about this transformationpublic ConcatenatedTransform(Transformation first, Transformation second)
Transformation.createFromTo(String, String)
method.
first
- The first transformation to apply to given points.second
- The second transformation to apply to given points.Method Detail |
---|
public java.util.List<javax.vecmath.Point3d> doTransform(java.util.List<javax.vecmath.Point3d> srcPts) throws TransformationException
Transformation
doTransform
in class Transformation
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
TransformationException
- if a transform could not be calculated.public void inverse()
Transformation
inverse
in class Transformation
public boolean isIdentity()
isIdentity
in class Transformation
public final Transformation getFirstTransform()
public final Transformation getSecondTransform()
public java.lang.String getImplementationName()
getImplementationName
in class Transformation
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org