|
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.MatrixTransform
public class MatrixTransform
The MatrixTransform
class allows transformations using matrices. Although technically n × m
matrices are possible, at the moment only 2 × 2, 3 × 3 and 4 × 4 matrices are supported.
Constructor Summary | |
---|---|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.GMatrix matrix)
Construct a transform. |
|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.GMatrix matrix,
Identifiable id)
Construct a transform. |
|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.Matrix3d matrix)
Construct a 3d transform. |
|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.Matrix3d matrix,
Identifiable id)
Construct a 3d transform. |
|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.Matrix4d matrix)
Construct a 4d transform. |
|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.Matrix4d matrix,
Identifiable id)
Construct a 4d transform. |
|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.Matrix4d matrix,
java.lang.String transformationName)
Construct a 4d transform. |
|
MatrixTransform(CoordinateSystem source,
CoordinateSystem target,
javax.vecmath.Matrix4d matrix,
java.lang.String transformationName,
Identifiable id)
Construct a 4d transform. |
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. |
boolean |
equals(java.lang.Object object)
|
int |
getDimSource()
|
int |
getDimTarget()
|
java.lang.String |
getImplementationName()
|
javax.vecmath.GMatrix |
getMatrix()
|
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, 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 MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.GMatrix matrix, Identifiable id)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- id
- an identifiable instance containing information about this transformationpublic MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.GMatrix matrix)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- public MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.Matrix3d matrix, Identifiable id)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- id
- an identifiable instance containing information about this transformationpublic MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.Matrix3d matrix)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- public MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.Matrix4d matrix, Identifiable id)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- id
- an identifiable instance containing information about this transformationpublic MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.Matrix4d matrix)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- public MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.Matrix4d matrix, java.lang.String transformationName, Identifiable id)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- transformationName
- the 'optional' name of the transformation, which is useful to specify the 'helmert' transformation.id
- an identifiable instance containing information about this transformationpublic MatrixTransform(CoordinateSystem source, CoordinateSystem target, javax.vecmath.Matrix4d matrix, java.lang.String transformationName)
source
- the source coordinate systemtarget
- the target coordinate system.matrix
- transformationName
- the 'optional' name of the transformation, which is useful to specify the 'helmert' transformation.Method Detail |
---|
public java.util.List<javax.vecmath.Point3d> doTransform(java.util.List<javax.vecmath.Point3d> srcPts)
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
public int getDimSource()
public int getDimTarget()
public boolean isIdentity()
isIdentity
in class Transformation
public boolean equals(java.lang.Object object)
equals
in class Identifiable
public final javax.vecmath.GMatrix getMatrix()
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