deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wcts.data
Class FeatureCollectionData

java.lang.Object
  extended by org.deegree.ogcwebservices.wcts.data.TransformableData<FeatureCollection>
      extended by org.deegree.ogcwebservices.wcts.data.FeatureCollectionData

public class FeatureCollectionData
extends TransformableData<FeatureCollection>

FeatureCollectionData encapsulates a list of FeatureCollections which can be transformed using the doTransform(Transformation, boolean) or doTransform(CoordinateSystem, CoordinateSystem, boolean) methods.

Version:
$Revision:$, $Date:$
Author:
Rutger Bezema, last edited by: $Author:$

Constructor Summary
FeatureCollectionData(java.util.List<FeatureCollection> transformableData)
          Creates a data instance which handles feature collections.
 
Method Summary
 void doTransform(CoordinateSystem sourceCRS, CoordinateSystem targetCRS, boolean enableLogging)
          This function should implement the transforming of the underlying data.
 void doTransform(Transformation transformation, boolean enableLogging)
          This function should implement the transforming of the underlying data.
 java.util.List<FeatureCollection> getTransformedData()
           
static FeatureCollectionData parseFeatureCollection(java.lang.String url)
          Try to load the featureCollection from a given url, and puts the result into a FeatureCollectionData object.
 
Methods inherited from class org.deegree.ogcwebservices.wcts.data.TransformableData
getGeotransformer, getGeotransformer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureCollectionData

public FeatureCollectionData(java.util.List<FeatureCollection> transformableData)
                      throws java.lang.IllegalArgumentException
Creates a data instance which handles feature collections.

Parameters:
transformableData - to transform
Throws:
java.lang.IllegalArgumentException - if either one of the crs's are null.
Method Detail

doTransform

public void doTransform(CoordinateSystem sourceCRS,
                        CoordinateSystem targetCRS,
                        boolean enableLogging)
                 throws OGCWebServiceException
Description copied from class: TransformableData
This function should implement the transforming of the underlying data.

Specified by:
doTransform in class TransformableData<FeatureCollection>
Parameters:
sourceCRS - of the incoming points
targetCRS - of the outgoing points
enableLogging - if true the implementing class should log all transformations.
Throws:
OGCWebServiceException - if an exception occurs while transforming.

doTransform

public void doTransform(Transformation transformation,
                        boolean enableLogging)
                 throws OGCWebServiceException
Description copied from class: TransformableData
This function should implement the transforming of the underlying data.

Specified by:
doTransform in class TransformableData<FeatureCollection>
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.

getTransformedData

public java.util.List<FeatureCollection> getTransformedData()
Specified by:
getTransformedData in class TransformableData<FeatureCollection>
Returns:
the transformed data as a list of the overriding class implementation, for example Geometry (GeometyData), or Point3d (SimpleData).

parseFeatureCollection

public static FeatureCollectionData parseFeatureCollection(java.lang.String url)
Try to load the featureCollection from a given url, and puts the result into a FeatureCollectionData object.

Parameters:
url - to load the data from.
Returns:
a loaded feature collection or null if no file could be loaded.

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org