org.deegree.ogcwebservices.wcts.data
Class TransformableData<T>
java.lang.Object
  
org.deegree.ogcwebservices.wcts.data.TransformableData<T>
- Type Parameters:
 T - the type of data.
- Direct Known Subclasses: 
 - FeatureCollectionData, GeometryData, SimpleData
 
public abstract class TransformableData<T>
- extends Object
 
TransformableData defines the interface for different kinds of Data, which can be transformed.
- Version:
 
  - $Revision:$, $Date:$
 
- Author:
 
  - Rutger Bezema, last edited by: $Author:$
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TransformableData
public TransformableData()
doTransform
public abstract void doTransform(CoordinateSystem sourceCRS,
                                 CoordinateSystem targetCRS,
                                 boolean enableLogging)
                          throws OGCWebServiceException
- This function should implement the transforming of the underlying data.
- Parameters:
 sourceCRS - of the incoming pointstargetCRS - of the outgoing pointsenableLogging - if true the implementing class should log all transformations.
- Throws:
 OGCWebServiceException - if an exception occurs while transforming.
 
 
doTransform
public abstract void doTransform(Transformation transformation,
                                 boolean enableLogging)
                          throws OGCWebServiceException
- This function should implement the transforming of the underlying data.
- Parameters:
 transformation - to use for the transform.enableLogging - if true the implementing class should log all transformations.
- Throws:
 OGCWebServiceException - if an exception occurs while transforming.
 
 
getGeotransformer
public final GeoTransformer getGeotransformer(CoordinateSystem targetCRS)
- Parameters:
 targetCRS - to get the GeoTransformer for.
- Returns:
 - a new GeoTransformer instance initialized with the targetCRS.
 
 
getGeotransformer
public final GeoTransformer getGeotransformer(Transformation transformation)
- Parameters:
 transformation - to get the GeoTransformer for.
- Returns:
 - a new GeoTransformer instance initialized with the targetCRS.
 
 
getTransformedData
public abstract List<T> getTransformedData()
- Returns:
 - the transformed data as a list of the overriding class implementation, for example 
Geometry
         (GeometyData), or Point3d (SimpleData). 
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org