deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.model.crs
Class GeoTransformer

java.lang.Object
  extended by org.deegree.model.crs.GeoTransformer
All Implemented Interfaces:
IGeoTransformer

public class GeoTransformer
extends Object
implements IGeoTransformer

class for transforming deegree geometries to new coordinate reference systems.

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

Version:
$Revision: 7637 $, $Date: 2007-06-25 13:00:05 +0200 (Mo, 25 Jun 2007) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Constructor Summary
GeoTransformer(CoordinateSystem targetCRS)
          Creates a new GeoTransformer object.
GeoTransformer(CoordinateSystem targetCRS, String csAccess)
          Creates a new GeoTransformer object.
GeoTransformer(String targetCS)
          Creates a new GeoTransformer object.
GeoTransformer(String targetCS, String csAccess)
          Creates a new GeoTransformer object.
 
Method Summary
 GridCoverage transform(AbstractGridCoverage coverage, int refPointsGridSize, int degree, javax.media.jai.Interpolation interpolation)
          transforms a GridCoverage into another coordinate reference system.
 Envelope transform(Envelope envelope, CoordinateSystem sourceCRS)
          transfroms a Envelope to the target crs of the GeoTransformer instance
 Envelope transform(Envelope envelope, String sourceCRS)
          transfroms a Envelope to the target crs of the GeoTransformer instance
 Feature transform(Feature feature)
          transforms all geometries contained within the passed
 FeatureCollection transform(FeatureCollection fc)
          transforms all geometries contained within the passed
 Geometry transform(Geometry geo)
          transforms the coodinates of a deegree geometry to the target coordinate reference system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoTransformer

public GeoTransformer(String targetCS)
               throws CRSException
Creates a new GeoTransformer object.

Parameters:
targetCS -
Throws:
CRSException

GeoTransformer

public GeoTransformer(CoordinateSystem targetCRS)
               throws CRSException
Creates a new GeoTransformer object.

Parameters:
targetCRS -
Throws:
CRSException

GeoTransformer

public GeoTransformer(String targetCS,
                      String csAccess)
               throws CRSException
Creates a new GeoTransformer object.

Parameters:
targetCS -
Throws:
CRSException

GeoTransformer

public GeoTransformer(CoordinateSystem targetCRS,
                      String csAccess)
               throws CRSException
Creates a new GeoTransformer object.

Parameters:
targetCRS -
Throws:
CRSException
Method Detail

transform

public Geometry transform(Geometry geo)
                   throws CRSTransformationException,
                          CRSException
Description copied from interface: IGeoTransformer
transforms the coodinates of a deegree geometry to the target coordinate reference system.

Specified by:
transform in interface IGeoTransformer
Throws:
CRSTransformationException
CRSException

transform

public Envelope transform(Envelope envelope,
                          String sourceCRS)
                   throws CRSTransformationException,
                          CRSException
Description copied from interface: IGeoTransformer
transfroms a Envelope to the target crs of the GeoTransformer instance

Specified by:
transform in interface IGeoTransformer
sourceCRS - CRS of the envelope
Returns:
Throws:
CRSTransformationException
CRSException

transform

public Envelope transform(Envelope envelope,
                          CoordinateSystem sourceCRS)
                   throws CRSTransformationException,
                          CRSException
Description copied from interface: IGeoTransformer
transfroms a Envelope to the target crs of the GeoTransformer instance

Specified by:
transform in interface IGeoTransformer
sourceCRS - CRS of the envelope
Returns:
Throws:
CRSTransformationException
CRSException

transform

public FeatureCollection transform(FeatureCollection fc)
                            throws CRSTransformationException,
                                   GeometryException,
                                   CRSException
Description copied from interface: IGeoTransformer
transforms all geometries contained within the passed

Specified by:
transform in interface IGeoTransformer
Returns:
the transformed geometries in the Featurecollection
Throws:
CRSTransformationException
GeometryException
CRSException
See Also:
into the target CRS of a GeoTransformer instance

transform

public Feature transform(Feature feature)
                  throws CRSTransformationException,
                         GeometryException,
                         CRSException
Description copied from interface: IGeoTransformer
transforms all geometries contained within the passed

Specified by:
transform in interface IGeoTransformer
Returns:
the transformed geometries in the given Feauture.
Throws:
CRSTransformationException
GeometryException
CRSException
See Also:
into the target CRS of a GeoTransformer instance

transform

public GridCoverage transform(AbstractGridCoverage coverage,
                              int refPointsGridSize,
                              int degree,
                              javax.media.jai.Interpolation interpolation)
                       throws CRSTransformationException,
                              CRSException
Description copied from interface: IGeoTransformer
transforms a GridCoverage into another coordinate reference system.

Specified by:
transform in interface IGeoTransformer
Parameters:
coverage - grid coverage to transform
refPointsGridSize - size of the grid used to calculate polynoms coefficients. E.g. 2 -≶ 4 points, 3 -≶ 9 points ...
Must be ≶= 2. Accuracy of coefficients increase with size of the grid. Speed decreases with size of the grid.
degree - The degree of the polynomial is supplied as an argument.
interpolation - interpolation method for warping the passed coverage. Can be null. In this case 'Nearest Neighbor' will be used as default
Returns:
Throws:
CRSTransformationException
CRSException

deegree 2.1 (2007/11/08 09:57 build-328-official)

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