org.deegree_impl.model.ct
Class MathTransformFactory.Export

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byorg.deegree_impl.model.ct.MathTransformFactory.Export
All Implemented Interfaces:
CT_MathTransformFactory, java.rmi.Remote, java.io.Serializable
Enclosing class:
MathTransformFactory

private final class MathTransformFactory.Export
extends java.rmi.server.RemoteObject
implements CT_MathTransformFactory

Wrap a MathTransformFactory 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.
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected MathTransformFactory.Export(java.lang.Object adapters)
          Construct a remote object.
 
Method Summary
 CT_MathTransform createAffineTransform(PT_Matrix matrix)
          Creates an affine transform from a matrix.
 CT_MathTransform createConcatenatedTransform(CT_MathTransform transform1, CT_MathTransform transform2)
          Creates a transform by concatenating two existing transforms.
 CT_MathTransform createFromWKT(java.lang.String wellKnownText)
          Creates a math transform from a Well-Known Text string.
 CT_MathTransform createFromXML(java.lang.String xml)
          Creates a math transform from XML.
 CT_MathTransform createParameterizedTransform(java.lang.String classification, CT_Parameter[] parameters)
          Creates a transform from a classification name and parameters.
 CT_MathTransform createPassThroughTransform(int firstAffectedOrdinate, CT_MathTransform subTransform)
          Creates a transform which passes through a subset of ordinates to another transform.
 boolean isParameterAngular(java.lang.String parameterName)
          Tests whether parameter is angular.
 boolean isParameterLinear(java.lang.String parameterName)
          Tests whether parameter is linear.
 
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.

Constructor Detail

MathTransformFactory.Export

protected MathTransformFactory.Export(java.lang.Object adapters)
Construct a remote object.

Method Detail

createAffineTransform

public CT_MathTransform createAffineTransform(PT_Matrix matrix)
                                       throws java.rmi.RemoteException
Creates an affine transform from a matrix.

Specified by:
createAffineTransform in interface CT_MathTransformFactory
Parameters:
matrix - The matrix used to define the affine transform.
Returns:
The affine transform.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createConcatenatedTransform

public CT_MathTransform createConcatenatedTransform(CT_MathTransform transform1,
                                                    CT_MathTransform transform2)
                                             throws java.rmi.RemoteException
Creates a transform by concatenating two existing transforms.

Specified by:
createConcatenatedTransform in interface CT_MathTransformFactory
Parameters:
transform1 - The first transform to apply to points.
transform2 - The second transform to apply to points.
Returns:
The concatenated transform.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createPassThroughTransform

public CT_MathTransform createPassThroughTransform(int firstAffectedOrdinate,
                                                   CT_MathTransform subTransform)
                                            throws java.rmi.RemoteException
Creates a transform which passes through a subset of ordinates to another transform.

Specified by:
createPassThroughTransform in interface CT_MathTransformFactory
Parameters:
firstAffectedOrdinate - The lowest index of the affected ordinates.
subTransform - Transform to use for affected ordinates.
Returns:
The pass through transform.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createParameterizedTransform

public CT_MathTransform createParameterizedTransform(java.lang.String classification,
                                                     CT_Parameter[] parameters)
                                              throws java.rmi.RemoteException
Creates a transform from a classification name and parameters.

Specified by:
createParameterizedTransform in interface CT_MathTransformFactory
Parameters:
classification - The classification name of the transform (e.g. "Transverse_Mercator").
parameters - The parameter values in standard units.
Returns:
The parameterized transform.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createFromWKT

public CT_MathTransform createFromWKT(java.lang.String wellKnownText)
                               throws java.rmi.RemoteException
Creates a math transform from a Well-Known Text string.

Specified by:
createFromWKT in interface CT_MathTransformFactory
Parameters:
wellKnownText - Math transform encoded in Well-Known Text format.
Returns:
The transform.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createFromXML

public CT_MathTransform createFromXML(java.lang.String xml)
                               throws java.rmi.RemoteException
Creates a math transform from XML.

Specified by:
createFromXML in interface CT_MathTransformFactory
Parameters:
xml - Math transform encoded in XML format.
Returns:
The transform.
Throws:
java.rmi.RemoteException - if a remote method call failed.

isParameterAngular

public boolean isParameterAngular(java.lang.String parameterName)
                           throws java.rmi.RemoteException
Tests whether parameter is angular.

Specified by:
isParameterAngular in interface CT_MathTransformFactory
Parameters:
parameterName - Name of parameter to test.
Returns:
true if the parameter is angular.
Throws:
java.rmi.RemoteException - if a remote method call failed.

isParameterLinear

public boolean isParameterLinear(java.lang.String parameterName)
                          throws java.rmi.RemoteException
Tests whether parameter is linear.

Specified by:
isParameterLinear in interface CT_MathTransformFactory
Parameters:
parameterName - Name of parameter to test.
Returns:
true if the parameter is linear.
Throws:
java.rmi.RemoteException - if a remote method call failed.