org.deegree_impl.model.ct
Class MathTransformExport

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byorg.deegree_impl.model.ct.MathTransformExport
All Implemented Interfaces:
CT_MathTransform, java.rmi.Remote, java.io.Serializable

final class MathTransformExport
extends java.rmi.server.RemoteObject
implements CT_MathTransform

Wrap a MathTransform for use with OpenGIS. This wrapper is a good place to check for non-implemented OpenGIS methods (just check for methods throwing UnsupportedOperationException). This class is suitable for RMI use.

Version:
1.0
Author:
Martin Desruisseaux

Field Summary
protected  Adapters adapters
          The originating adapter.
protected  MathTransform transform
          The enclosed math transform.
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected MathTransformExport(java.lang.Object adapters, MathTransform transform)
          Construct a remote object.
 
Method Summary
 PT_Matrix derivative(PT_CoordinatePoint cp)
          Gets the derivative of this transform at a point.
 double[] getCodomainConvexHull(double[] ord)
          Gets transformed convex hull.
 int getDimSource()
          Gets the dimension of input points.
 int getDimTarget()
          Gets the dimension of output points.
 CT_DomainFlags getDomainFlags(double[] ord)
          Gets flags classifying domain points within a convex hull.
 java.lang.String getWKT()
          Gets a Well-Known text representation of this object.
 java.lang.String getXML()
          Gets an XML representation of this object.
 CT_MathTransform inverse()
          Creates the inverse transform of this object.
 boolean isIdentity()
          Tests whether this transform does not move any points.
 PT_CoordinatePoint transform(PT_CoordinatePoint cp)
          Transforms a coordinate point.
 double[] transformList(double[] ord)
          Transforms a list of coordinate point ordinal values.
static java.lang.Object unwrap(java.lang.Object object)
          Returns the underlying transform of the specified MathTransformExport.
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

adapters

protected final Adapters adapters
The originating adapter.


transform

protected final MathTransform transform
The enclosed math transform.

Constructor Detail

MathTransformExport

protected MathTransformExport(java.lang.Object adapters,
                              MathTransform transform)
Construct a remote object.

Method Detail

unwrap

public static java.lang.Object unwrap(java.lang.Object object)
Returns the underlying transform of the specified MathTransformExport. If object is not an instance of MathTransformExport, then it is returned as is.


getDomainFlags

public CT_DomainFlags getDomainFlags(double[] ord)
                              throws java.rmi.RemoteException
Gets flags classifying domain points within a convex hull.

Specified by:
getDomainFlags in interface CT_MathTransform
Parameters:
ord - Packed ordinates of points used to generate convex hull.
Returns:
flags classifying domain points within the convex hull.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getCodomainConvexHull

public double[] getCodomainConvexHull(double[] ord)
                               throws java.rmi.RemoteException
Gets transformed convex hull.

Specified by:
getCodomainConvexHull in interface CT_MathTransform
Parameters:
ord - Packed ordinates of points used to generate convex hull.
Returns:
The transformed convex hull.
Throws:
java.rmi.RemoteException - if a remote method call failed.

getWKT

public java.lang.String getWKT()
                        throws java.rmi.RemoteException
Gets a Well-Known text representation of this object.

Specified by:
getWKT in interface CT_MathTransform
Throws:
java.rmi.RemoteException - if a remote method call failed.

getXML

public java.lang.String getXML()
                        throws java.rmi.RemoteException
Gets an XML representation of this object.

Specified by:
getXML in interface CT_MathTransform
Throws:
java.rmi.RemoteException - if a remote method call failed.

getDimSource

public int getDimSource()
                 throws java.rmi.RemoteException
Gets the dimension of input points.

Specified by:
getDimSource in interface CT_MathTransform
Throws:
java.rmi.RemoteException - if a remote method call failed.

getDimTarget

public int getDimTarget()
                 throws java.rmi.RemoteException
Gets the dimension of output points.

Specified by:
getDimTarget in interface CT_MathTransform
Throws:
java.rmi.RemoteException - if a remote method call failed.

isIdentity

public boolean isIdentity()
                   throws java.rmi.RemoteException
Tests whether this transform does not move any points.

Specified by:
isIdentity in interface CT_MathTransform
Returns:
true if this MathTransform is an identity transform; false otherwise.
Throws:
java.rmi.RemoteException - if a remote method call failed.

transform

public PT_CoordinatePoint transform(PT_CoordinatePoint cp)
                             throws java.rmi.RemoteException
Transforms a coordinate point.

Specified by:
transform in interface CT_MathTransform
Parameters:
cp - Point to transform.
Returns:
The transformed point.
Throws:
java.rmi.RemoteException - if a remote method call failed.

transformList

public double[] transformList(double[] ord)
                       throws java.rmi.RemoteException
Transforms a list of coordinate point ordinal values.

Specified by:
transformList in interface CT_MathTransform
Parameters:
ord - Packed ordinates of points to transform.
Returns:
The packed transformed points. May be ord.
Throws:
java.rmi.RemoteException - if a remote method call failed.

derivative

public PT_Matrix derivative(PT_CoordinatePoint cp)
                     throws java.rmi.RemoteException
Gets the derivative of this transform at a point.

Specified by:
derivative in interface CT_MathTransform
Parameters:
cp - Point in domain at which to get derivative.
Returns:
The derivative of this transform at the suplied point.
Throws:
java.rmi.RemoteException - if a remote method call failed.

inverse

public CT_MathTransform inverse()
                         throws java.rmi.RemoteException
Creates the inverse transform of this object.

Specified by:
inverse in interface CT_MathTransform
Returns:
The inverse transform.
Throws:
java.rmi.RemoteException - if a remote method call failed.