|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.cs.Info
org.deegree_impl.model.ct.CoordinateTransformation
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 FormNested Class Summary | |
(package private) class |
CoordinateTransformation.Export
Wrap a CoordinateTransformation for use with OpenGIS.
|
private static class |
CoordinateTransformation.Inverse
The inverse coordinate transformation. |
Nested classes inherited from class org.deegree_impl.model.cs.Info |
|
Field Summary | |
(package private) CoordinateTransformation |
inverse
The inverse transform. |
private java.lang.Object |
proxy
OpenGIS object returned by cachedOpenGIS(java.lang.Object) .
|
private static long |
serialVersionUID
Serial number for interoperability with different versions. |
private CoordinateSystem |
sourceCS
The source coordinate system. |
private CoordinateSystem |
targetCS
The destination coordinate system. |
protected MathTransform |
transform
The underlying math transform, or null if it
doesn't has been constructed yet. |
private TransformType |
type
The transform type. |
Fields inherited from class org.deegree_impl.model.cs.Info |
|
Constructor Summary | |
CoordinateTransformation(java.lang.String name,
CoordinateSystem sourceCS,
CoordinateSystem targetCS,
TransformType type,
MathTransform transform)
Construct a coordinate transformation. |
Method Summary | |
(package private) java.lang.Object |
cachedOpenGIS(java.lang.Object adapters)
Returns an OpenGIS interface for this info. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this coordinate transformation for equality. |
MathTransform |
getMathTransform()
Gets the math transform. |
java.lang.String |
getName(java.util.Locale locale)
Gets the name of this coordinate transformation. |
CoordinateSystem |
getSourceCS()
Gets the source coordinate system. |
CoordinateSystem |
getTargetCS()
Gets the target coordinate system. |
TransformType |
getTransformType()
Gets the semantic type of transform. |
int |
hashCode()
Returns a hash value for this coordinate transformation. |
CoordinateTransformation |
inverse()
Returns the inverse transform of this object. |
(package private) java.lang.Object |
toOpenGIS(java.lang.Object adapters)
Returns an OpenGIS interface for this math transform. |
Methods inherited from class org.deegree_impl.model.cs.Info |
ensureNonNull, getAbbreviation, getAlias, getAuthority, getAuthorityCode, getRemarks, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private transient java.lang.Object proxy
cachedOpenGIS(java.lang.Object)
.
It may be a hard or a weak reference.
private final CoordinateSystem sourceCS
private final CoordinateSystem targetCS
private final TransformType type
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.
transient CoordinateTransformation inverse
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)
getName
in class Info
locale
- The desired locale, or null
for the default locale.CS_Info.getName()
public CoordinateSystem getSourceCS()
CT_CoordinateTransformation.getSourceCS()
public CoordinateSystem getTargetCS()
CT_CoordinateTransformation.getTargetCS()
public TransformType getTransformType()
CT_CoordinateTransformation.getTransformType()
public MathTransform getMathTransform()
CT_CoordinateTransformation.getMathTransform()
public CoordinateTransformation inverse() throws NoninvertibleTransformException
NoninvertibleTransformException
public int hashCode()
hashCode
in class Info
public boolean equals(java.lang.Object object)
equals
in class Info
java.lang.Object toOpenGIS(java.lang.Object adapters)
Object
in order
to avoid too early class loading of OpenGIS interface.
Note 2: We do NOT want this method to override Info.toOpenGIS(),
since the returned object do not implements CS_Info. The
package-private access do the trick.
final java.lang.Object cachedOpenGIS(java.lang.Object adapters)
adapters
- The originating Adapters
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |