|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.cs.Info org.geotools.ct.CoordinateTransformation
AbstractCoordinateOperation
.
Describes a coordinate transformation. A coordinate transformation class establishes
an association between a source and a target coordinate reference system, and provides
a MathTransform
for transforming coordinates in the source coordinate reference
system to coordinates in the target coordinate reference system. These coordinate
systems can be ground or image coordinates. In general mathematics, "transformation"
is the general term for mappings between coordinate systems (see tensor analysis).
For a ground coordinate point, if the transformation depends only on mathematically
derived parameters (as in a cartographic projection), then this is an ISO conversion.
If the transformation depends on empirically derived parameters (as in datum
transformations), then this is an ISO transformation.
CT_CoordinateTransformation
,
Serialized FormField Summary | |
protected MathTransform |
transform
Deprecated. The underlying math transform, or null if it
doesn't has been constructed yet. |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
CoordinateTransformation(java.lang.String name,
CoordinateSystem sourceCS,
CoordinateSystem targetCS,
TransformType type,
MathTransform transform)
Deprecated. Construct a coordinate transformation. |
Method Summary | |
boolean |
equals(Info object,
boolean compareNames)
Deprecated. Compares the specified object with this coordinate transformation for equality. |
MathTransform |
getMathTransform()
Deprecated. Replaced by AbstractCoordinateOperation.getMathTransform() . |
java.lang.String |
getName(java.util.Locale locale)
Deprecated. Replaced by AbstractIdentifiedObject.getName() . |
CoordinateSystem |
getSourceCS()
Deprecated. Replaced by AbstractCoordinateOperation.getSourceCRS() . |
CoordinateSystem |
getTargetCS()
Deprecated. Replaced by AbstractCoordinateOperation.getTargetCRS() . |
TransformType |
getTransformType()
Deprecated. No direct replacement. Check for instance of Conversion or
Transformation instead. |
int |
hashCode()
Deprecated. Returns a hash value for this coordinate transformation. |
CoordinateTransformation |
inverse()
Deprecated. Returns the inverse transform of this object. |
Methods inherited from class org.geotools.cs.Info |
ensureNonNull, equals, getAbbreviation, getAlias, getAlias, getAuthority, getAuthorityCode, getIdentifiers, getName, getRemarks, toString, toWKT |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected MathTransform transform
null
if it
doesn't has been constructed yet. If null
,
then subclass must initialize this field
the first time getMathTransform()
is invoked.
Constructor Detail |
public CoordinateTransformation(java.lang.String name, CoordinateSystem sourceCS, CoordinateSystem targetCS, TransformType type, MathTransform transform)
name
- The coordinate transformation name, or null
for an automatically generated name.sourceCS
- The source coordinate system.targetCS
- The destination coordinate system.type
- The transform type.transform
- The math transform. This argument is allowed to
be null
only if this constructor is
invoked from within a subclass constructor. In
this case, the subclass must
construct a math transform no later than the first
time getMathTransform()
is invoked.Method Detail |
public java.lang.String getName(java.util.Locale locale)
AbstractIdentifiedObject.getName()
.
locale
- The desired locale, or null
for the default locale.public CoordinateSystem getSourceCS()
AbstractCoordinateOperation.getSourceCRS()
.
CT_CoordinateTransformation.getSourceCS()
public CoordinateSystem getTargetCS()
AbstractCoordinateOperation.getTargetCRS()
.
CT_CoordinateTransformation.getTargetCS()
public TransformType getTransformType()
Conversion
or
Transformation
instead.
CT_CoordinateTransformation.getTransformType()
public MathTransform getMathTransform()
AbstractCoordinateOperation.getMathTransform()
.
CT_CoordinateTransformation.getMathTransform()
public CoordinateTransformation inverse() throws org.opengis.referencing.operation.NoninvertibleTransformException
org.opengis.referencing.operation.NoninvertibleTransformException
public int hashCode()
hashCode
in class Info
public boolean equals(Info object, boolean compareNames)
equals
in class Info
object
- The object to compare to this
.compareNames
- true
to comparare the name,
alias, authority
code, etc. as well, or false
to compare only properties
relevant to transformations.
true
if both objects are equal.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |