org.deegree_impl.model.cs
Class CoordinateSystemFactory.Export

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byorg.deegree_impl.model.cs.CoordinateSystemFactory.Export
All Implemented Interfaces:
CS_CoordinateSystemFactory, java.rmi.Remote, java.io.Serializable
Enclosing class:
CoordinateSystemFactory

private final class CoordinateSystemFactory.Export
extends java.rmi.server.RemoteObject
implements CS_CoordinateSystemFactory

Wrap a Info object 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 CoordinateSystemFactory.Export(java.lang.Object adapters)
          Construct a remote object.
 
Method Summary
 CS_CompoundCoordinateSystem createCompoundCoordinateSystem(java.lang.String name, CS_CoordinateSystem head, CS_CoordinateSystem tail)
          Creates a compound coordinate system.
 CS_Ellipsoid createEllipsoid(java.lang.String name, double semiMajorAxis, double semiMinorAxis, CS_LinearUnit linearUnit)
          Creates an ellipsoid from radius values.
 CS_FittedCoordinateSystem createFittedCoordinateSystem(java.lang.String name, CS_CoordinateSystem base, java.lang.String toBaseWKT, CS_AxisInfo[] arAxes)
          Creates a fitted coordinate system.
 CS_Ellipsoid createFlattenedSphere(java.lang.String name, double semiMajorAxis, double inverseFlattening, CS_LinearUnit linearUnit)
          Creates an ellipsoid from an major radius, and inverse flattening.
 CS_CoordinateSystem createFromWKT(java.lang.String wellKnownText)
          Creates a coordinate system object from a Well-Known Text string.
 CS_CoordinateSystem createFromXML(java.lang.String xml)
          Creates a coordinate system object from an XML string.
 CS_GeographicCoordinateSystem createGeographicCoordinateSystem(java.lang.String name, CS_AngularUnit angularUnit, CS_HorizontalDatum horizontalDatum, CS_PrimeMeridian primeMeridian, CS_AxisInfo axis0, CS_AxisInfo axis1)
          Creates a GCS, which could be Lat/Lon or Lon/Lat.
 CS_HorizontalDatum createHorizontalDatum(java.lang.String name, CS_DatumType horizontalDatumType, CS_Ellipsoid ellipsoid, CS_WGS84ConversionInfo toWGS84)
          Creates horizontal datum from ellipsoid and Bursa-Wolf parameters.
 CS_LocalCoordinateSystem createLocalCoordinateSystem(java.lang.String name, CS_LocalDatum datum, CS_Unit unit, CS_AxisInfo[] arAxes)
          Creates a local coordinate system.
 CS_LocalDatum createLocalDatum(java.lang.String name, CS_DatumType localDatumType)
          Creates a local datum.
 CS_PrimeMeridian createPrimeMeridian(java.lang.String name, CS_AngularUnit angularUnit, double longitude)
          Creates a prime meridian, relative to Greenwich.
 CS_ProjectedCoordinateSystem createProjectedCoordinateSystem(java.lang.String name, CS_GeographicCoordinateSystem gcs, CS_Projection projection, CS_LinearUnit linearUnit, CS_AxisInfo axis0, CS_AxisInfo axis1)
          Creates a projected coordinate system using a projection object.
 CS_Projection createProjection(java.lang.String name, java.lang.String wktProjectionClass, CS_ProjectionParameter[] parameters)
          Creates a projection.
 CS_VerticalCoordinateSystem createVerticalCoordinateSystem(java.lang.String name, CS_VerticalDatum verticalDatum, CS_LinearUnit verticalUnit, CS_AxisInfo axis)
          Creates a vertical coordinate system from a datum and linear units.
 CS_VerticalDatum createVerticalDatum(java.lang.String name, CS_DatumType verticalDatumType)
          Creates a vertical datum from an enumerated type value.
 CoordinateSystemFactory unwrap()
          Returns the underlying implementation.
 
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

CoordinateSystemFactory.Export

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

Method Detail

unwrap

public CoordinateSystemFactory unwrap()
Returns the underlying implementation.


createFromXML

public CS_CoordinateSystem createFromXML(java.lang.String xml)
                                  throws java.rmi.RemoteException
Creates a coordinate system object from an XML string.

Specified by:
createFromXML in interface CS_CoordinateSystemFactory
Parameters:
xml - Coordinate system encoded in XML format.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createFromWKT

public CS_CoordinateSystem createFromWKT(java.lang.String wellKnownText)
                                  throws java.rmi.RemoteException
Creates a coordinate system object from a Well-Known Text string.

Specified by:
createFromWKT in interface CS_CoordinateSystemFactory
Parameters:
wellKnownText - Coordinate system encoded in Well-Known Text format.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createCompoundCoordinateSystem

public CS_CompoundCoordinateSystem createCompoundCoordinateSystem(java.lang.String name,
                                                                  CS_CoordinateSystem head,
                                                                  CS_CoordinateSystem tail)
                                                           throws java.rmi.RemoteException
Creates a compound coordinate system.

Specified by:
createCompoundCoordinateSystem in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
head - Coordinate system to use for earlier ordinates.
tail - Coordinate system to use for later ordinates.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createFittedCoordinateSystem

public CS_FittedCoordinateSystem createFittedCoordinateSystem(java.lang.String name,
                                                              CS_CoordinateSystem base,
                                                              java.lang.String toBaseWKT,
                                                              CS_AxisInfo[] arAxes)
                                                       throws java.rmi.RemoteException
Creates a fitted coordinate system.

Specified by:
createFittedCoordinateSystem in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
base - Coordinate system to base the fitted CS on.
toBaseWKT - Well-Known Text of transform from returned CS to base CS.
arAxes - Axes for fitted coordinate system. The number of axes must match the source dimension of the transform "toBaseWKT".
Throws:
java.rmi.RemoteException - if a remote method call failed.

createLocalCoordinateSystem

public CS_LocalCoordinateSystem createLocalCoordinateSystem(java.lang.String name,
                                                            CS_LocalDatum datum,
                                                            CS_Unit unit,
                                                            CS_AxisInfo[] arAxes)
                                                     throws java.rmi.RemoteException
Creates a local coordinate system.

Specified by:
createLocalCoordinateSystem in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
datum - Local datum to use in created CS.
unit - Units to use for all axes in created CS.
arAxes - Axes to use in created CS.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createEllipsoid

public CS_Ellipsoid createEllipsoid(java.lang.String name,
                                    double semiMajorAxis,
                                    double semiMinorAxis,
                                    CS_LinearUnit linearUnit)
                             throws java.rmi.RemoteException
Creates an ellipsoid from radius values.

Specified by:
createEllipsoid in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
semiMajorAxis - Equatorial radius in supplied linear units.
semiMinorAxis - Polar radius in supplied linear units.
linearUnit - Linear units of ellipsoid axes.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createFlattenedSphere

public CS_Ellipsoid createFlattenedSphere(java.lang.String name,
                                          double semiMajorAxis,
                                          double inverseFlattening,
                                          CS_LinearUnit linearUnit)
                                   throws java.rmi.RemoteException
Creates an ellipsoid from an major radius, and inverse flattening.

Specified by:
createFlattenedSphere in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
semiMajorAxis - Equatorial radius in supplied linear units.
inverseFlattening - Eccentricity of ellipsoid.
linearUnit - Linear units of major axis.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createProjectedCoordinateSystem

public CS_ProjectedCoordinateSystem createProjectedCoordinateSystem(java.lang.String name,
                                                                    CS_GeographicCoordinateSystem gcs,
                                                                    CS_Projection projection,
                                                                    CS_LinearUnit linearUnit,
                                                                    CS_AxisInfo axis0,
                                                                    CS_AxisInfo axis1)
                                                             throws java.rmi.RemoteException
Creates a projected coordinate system using a projection object.

Specified by:
createProjectedCoordinateSystem in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
gcs - Geographic coordinate system to base projection on.
projection - Projection from GCS to PCS.
linearUnit - Linear units of returned PCS.
axis0 - Details of 0th ordinates in returned PCS coordinates.
axis1 - Details of 1st ordinates in returned PCS coordinates.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createProjection

public CS_Projection createProjection(java.lang.String name,
                                      java.lang.String wktProjectionClass,
                                      CS_ProjectionParameter[] parameters)
                               throws java.rmi.RemoteException
Creates a projection.

Specified by:
createProjection in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
wktProjectionClass - Classification string for projection (e.g. "Transverse_Mercator").
parameters - Parameters to use for projection, in units of intended PCS.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createHorizontalDatum

public CS_HorizontalDatum createHorizontalDatum(java.lang.String name,
                                                CS_DatumType horizontalDatumType,
                                                CS_Ellipsoid ellipsoid,
                                                CS_WGS84ConversionInfo toWGS84)
                                         throws java.rmi.RemoteException
Creates horizontal datum from ellipsoid and Bursa-Wolf parameters.

Specified by:
createHorizontalDatum in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
horizontalDatumType - Type of horizontal datum to create.
ellipsoid - Ellipsoid to use in new horizontal datum.
toWGS84 - Suggested approximate conversion from new datum to WGS84.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createPrimeMeridian

public CS_PrimeMeridian createPrimeMeridian(java.lang.String name,
                                            CS_AngularUnit angularUnit,
                                            double longitude)
                                     throws java.rmi.RemoteException
Creates a prime meridian, relative to Greenwich.

Specified by:
createPrimeMeridian in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
angularUnit - Angular units of longitude.
longitude - Longitude of prime meridian in supplied angular units East of Greenwich.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createGeographicCoordinateSystem

public CS_GeographicCoordinateSystem createGeographicCoordinateSystem(java.lang.String name,
                                                                      CS_AngularUnit angularUnit,
                                                                      CS_HorizontalDatum horizontalDatum,
                                                                      CS_PrimeMeridian primeMeridian,
                                                                      CS_AxisInfo axis0,
                                                                      CS_AxisInfo axis1)
                                                               throws java.rmi.RemoteException
Creates a GCS, which could be Lat/Lon or Lon/Lat.

Specified by:
createGeographicCoordinateSystem in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
angularUnit - Angular units for created GCS.
horizontalDatum - Horizontal datum for created GCS.
primeMeridian - Prime Meridian for created GCS.
axis0 - Details of 0th ordinates in returned GCS coordinates.
axis1 - Details of 1st ordinates in returned GCS coordinates.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createLocalDatum

public CS_LocalDatum createLocalDatum(java.lang.String name,
                                      CS_DatumType localDatumType)
                               throws java.rmi.RemoteException
Creates a local datum.

Specified by:
createLocalDatum in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
localDatumType - Type of local datum to create.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createVerticalDatum

public CS_VerticalDatum createVerticalDatum(java.lang.String name,
                                            CS_DatumType verticalDatumType)
                                     throws java.rmi.RemoteException
Creates a vertical datum from an enumerated type value.

Specified by:
createVerticalDatum in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
verticalDatumType - Type of vertical datum to create.
Throws:
java.rmi.RemoteException - if a remote method call failed.

createVerticalCoordinateSystem

public CS_VerticalCoordinateSystem createVerticalCoordinateSystem(java.lang.String name,
                                                                  CS_VerticalDatum verticalDatum,
                                                                  CS_LinearUnit verticalUnit,
                                                                  CS_AxisInfo axis)
                                                           throws java.rmi.RemoteException
Creates a vertical coordinate system from a datum and linear units.

Specified by:
createVerticalCoordinateSystem in interface CS_CoordinateSystemFactory
Parameters:
name - Name to give new object.
verticalDatum - Datum to use for new coordinate system.
verticalUnit - Units to use for new coordinate system.
axis - Axis to use for new coordinate system.
Throws:
java.rmi.RemoteException - if a remote method call failed.