| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.ogcwebservices.wcts.data.TransformableData<Geometry>
org.deegree.ogcwebservices.wcts.data.GeometryData
public class GeometryData
GeometryData encapsulates a list of geometries which can be transformed using the
 doTransform(Transformation, boolean) or doTransform(CoordinateSystem, CoordinateSystem, boolean)
 methods.
| Constructor Summary | |
|---|---|
GeometryData(List<Geometry> transformableData)
Creates a data instance which handles geometries.  | 
|
| 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.  | 
 List<Geometry> | 
getTransformedData()
 | 
static GeometryData | 
parseGeometryData(CoordinateSystem sourceCRS,
                                   String wkt)
Try to create a Geometry from a given String, put the result into a GeometryData 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 | 
|---|
public GeometryData(List<Geometry> transformableData)
             throws IllegalArgumentException
transformableData - to transform
IllegalArgumentException - if either one of the crs's are null.| Method Detail | 
|---|
public void doTransform(CoordinateSystem sourceCRS,
                        CoordinateSystem targetCRS,
                        boolean enableLogging)
                 throws OGCWebServiceException
TransformableData
doTransform in class TransformableData<Geometry>sourceCRS - of the incoming pointstargetCRS - of the outgoing pointsenableLogging - if true the implementing class should log all transformations.
OGCWebServiceException - if an exception occurs while transforming.
public void doTransform(Transformation transformation,
                        boolean enableLogging)
                 throws OGCWebServiceException
TransformableData
doTransform in class TransformableData<Geometry>transformation - to use for the transform.enableLogging - if true the implementing class should log all transformations.
OGCWebServiceException - if an exception occurs while transforming.public List<Geometry> getTransformedData()
getTransformedData in class TransformableData<Geometry>Geometry
         (GeometyData), or Point3d (SimpleData).
public static GeometryData parseGeometryData(CoordinateSystem sourceCRS,
                                             String wkt)
                                      throws OGCWebServiceException
sourceCRS - in which the data is referencedwkt - to create the geometry from.
null if the wkt could not be parsed.
OGCWebServiceException - if run into an exception (thrown by the WKTAdapter any other then a GeometryException.
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org