org.deegree_impl.services.wcts.protocol
Class TransformRequest_Impl

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebServiceRequest_Impl
      extended byorg.deegree_impl.services.wcts.protocol.TransformRequest_Impl
All Implemented Interfaces:
OGCWebServiceRequest, TransformRequest

public class TransformRequest_Impl
extends OGCWebServiceRequest_Impl
implements TransformRequest

The transform-schema describes the only mandatory request, which is to adapt from the Transformation-Web-Service

The basic elememts of the reqest are the coordinate-system of the data (SourceCRS), the coordinate-system in which the data should be transformed (DestinationCRS) and the data itself. Additional to this the format of the incoming data and the results are declared.

The determination of a transformation-sequence is optional. Normally several single-transformations are needed for the transformation of coordinates from one system into another. With the <TransformationSequence>- element it is possible to define (a) in which order (b) which transformations should be executed.

It is to notice, that the transformationservice is based on the OpenGIS implemantation specification "Coordinate Transformation Service 1.0.0". I. e. that the transformation of a geometry results from the transformation of its particular coordinates. Splines and other not-linear interpolations get not explicit transformed. So, for the the incoming data only point-geometries and linear interpolated geometries are acceptable. In addition to the GML-coded geometries a coding of "Well Known Text" (WKT) is possible. A WKT-geometry is transported as a string.

----------------------------------------------------------------------

Version:
2002-07-19
Author:
Andreas Poth

Field Summary
private  java.util.ArrayList data
           
private  CS_CoordinateSystem destinationCRS
           
private  java.lang.String inputFormat
           
private  java.lang.String outputFormat
           
private  CS_CoordinateSystem sourceCRS
           
private  java.util.ArrayList transformationSequence
           
 
Fields inherited from class org.deegree_impl.services.OGCWebServiceRequest_Impl
id, request, service, vendorSpecificParameter, version
 
Constructor Summary
(package private) TransformRequest_Impl(java.lang.String version, java.lang.String id, java.util.HashMap vendorSpecificParameter, java.lang.String inputFormat, java.lang.String outputFormat, CS_CoordinateSystem sourceCRS, CS_CoordinateSystem destinationCRS, TransformationSequence[] transformationSequence, GMLGeometry[] data)
          constructor
 
Method Summary
 void addGeometry(GMLGeometry data)
           
 void addTransformationSequence(TransformationSequence transformationSequence)
           
 CS_CoordinateSystem getDestinationCRS()
          gets DestinationCRS-element.
 GMLGeometry[] getGeometries()
          gets the data
 java.lang.String getInputFormat()
          gets InputFormat-element
 java.lang.String getOutputFormat()
          gets OutputFormat-element
 CS_CoordinateSystem getSourceCRS()
          gets SourceCRS-element.
 TransformationSequence[] getTransformationSequence()
          gets the TransformationSequence-element.
 void setDestinationCRS(CS_CoordinateSystem destinationCRS)
           
 void setGeometry(GMLGeometry[] data)
           
 void setInputFormat(java.lang.String inputFormat)
           
 void setOutputFormat(java.lang.String outputFormat)
           
 void setSourceCRS(CS_CoordinateSystem sourceCRS)
           
 void setTransformationSequence(TransformationSequence[] transformationSequence)
           
 
Methods inherited from class org.deegree_impl.services.OGCWebServiceRequest_Impl
getId, getRequest, getRequestParameter, getService, getVendorSpecificParameter, getVendorSpecificParameters, getVersion, putVendorSpecificParameter, setId, setRequest, setService, setVendorSpecificParameter, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.services.wcts.protocol.TransformRequest
getVersion
 
Methods inherited from interface org.deegree.services.OGCWebServiceRequest
getId, getRequest, getRequestParameter, getService, getVendorSpecificParameter, getVendorSpecificParameters
 

Field Detail

data

private java.util.ArrayList data

transformationSequence

private java.util.ArrayList transformationSequence

destinationCRS

private CS_CoordinateSystem destinationCRS

sourceCRS

private CS_CoordinateSystem sourceCRS

inputFormat

private java.lang.String inputFormat

outputFormat

private java.lang.String outputFormat
Constructor Detail

TransformRequest_Impl

TransformRequest_Impl(java.lang.String version,
                      java.lang.String id,
                      java.util.HashMap vendorSpecificParameter,
                      java.lang.String inputFormat,
                      java.lang.String outputFormat,
                      CS_CoordinateSystem sourceCRS,
                      CS_CoordinateSystem destinationCRS,
                      TransformationSequence[] transformationSequence,
                      GMLGeometry[] data)
constructor

Method Detail

getInputFormat

public java.lang.String getInputFormat()
gets InputFormat-element

Specified by:
getInputFormat in interface TransformRequest

setInputFormat

public void setInputFormat(java.lang.String inputFormat)
See Also:
getInputFormat()

getOutputFormat

public java.lang.String getOutputFormat()
gets OutputFormat-element

Specified by:
getOutputFormat in interface TransformRequest

setOutputFormat

public void setOutputFormat(java.lang.String outputFormat)
See Also:
getOutputFormat()

getSourceCRS

public CS_CoordinateSystem getSourceCRS()
gets SourceCRS-element. Unique description of the Source coordinate-system

Specified by:
getSourceCRS in interface TransformRequest

setSourceCRS

public void setSourceCRS(CS_CoordinateSystem sourceCRS)
See Also:
getSourceCRS()

getDestinationCRS

public CS_CoordinateSystem getDestinationCRS()
gets DestinationCRS-element. Unique description of the Destination coordinate-system

Specified by:
getDestinationCRS in interface TransformRequest

setDestinationCRS

public void setDestinationCRS(CS_CoordinateSystem destinationCRS)
See Also:
getDestinationCRS()

getTransformationSequence

public TransformationSequence[] getTransformationSequence()
gets the TransformationSequence-element. Sequence of the transformation steps. Each transformation step is to be described completely by means of XML.

Specified by:
getTransformationSequence in interface TransformRequest

addTransformationSequence

public void addTransformationSequence(TransformationSequence transformationSequence)
See Also:
getTransformationSequence()

setTransformationSequence

public void setTransformationSequence(TransformationSequence[] transformationSequence)
See Also:
getTransformationSequence()

getGeometries

public GMLGeometry[] getGeometries()
gets the data

Specified by:
getGeometries in interface TransformRequest

addGeometry

public void addGeometry(GMLGeometry data)
See Also:
getGeometries()

setGeometry

public void setGeometry(GMLGeometry[] data)
See Also:
getGeometries()