org.esa.beam.util
Class FeatureCollectionClipper

java.lang.Object
  extended by org.esa.beam.util.FeatureCollectionClipper

Deprecated. since BEAM 4.10, use FeatureUtils instead

@Deprecated
public class FeatureCollectionClipper
extends Object


Method Summary
static com.vividsolutions.jts.geom.Geometry createGeoBoundaryPolygon(Product product)
          Deprecated. since BEAM 4.10, use FeatureUtils instead
static org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> doOperation(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> sourceCollection, org.opengis.referencing.crs.CoordinateReferenceSystem defaultSourceCrs, com.vividsolutions.jts.geom.Geometry clipGeometry, org.opengis.referencing.crs.CoordinateReferenceSystem clipCrs, String targetID, org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs)
          Deprecated. since BEAM 4.10, use FeatureUtils instead
static org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> doOperation(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> sourceCollection, com.vividsolutions.jts.geom.Geometry clipGeometry, String targetID, org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs)
          Deprecated. since BEAM 4.10, use FeatureUtils instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

doOperation

@Deprecated
public static org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> doOperation(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> sourceCollection,
                                                                                                                                                                   com.vividsolutions.jts.geom.Geometry clipGeometry,
                                                                                                                                                                   String targetID,
                                                                                                                                                                   org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs)
Deprecated. since BEAM 4.10, use FeatureUtils instead

Clips the given sourceCollection against the clipGeometry and reprojects the clipped features to the targetCrs.

Parameters:
sourceCollection - the feature collection to be clipped and reprojected. If it does not have an associated CRS, WGS_84 is assumed.
clipGeometry - the geometry used for clipping. Assumed to be in WGS_84 coordinates.
targetID - the ID of the resulting FeatureCollection. If null the ID of the sourceCollection is used.
targetCrs - the CRS the FeatureCollection is reprojected to. If null no reprojection is applied.
Returns:
the clipped and possibly reprojectd FeatureCollection

doOperation

@Deprecated
public static org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> doOperation(org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> sourceCollection,
                                                                                                                                                                   org.opengis.referencing.crs.CoordinateReferenceSystem defaultSourceCrs,
                                                                                                                                                                   com.vividsolutions.jts.geom.Geometry clipGeometry,
                                                                                                                                                                   org.opengis.referencing.crs.CoordinateReferenceSystem clipCrs,
                                                                                                                                                                   String targetID,
                                                                                                                                                                   org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs)
Deprecated. since BEAM 4.10, use FeatureUtils instead

Clips the given sourceCollection against the clipGeometry and reprojects the clipped features to the targetCrs.

Parameters:
sourceCollection - the feature collection to be clipped and reprojected. If it does not have an associated CRS, the one specified by defaultSourceCrs is used.
defaultSourceCrs - if sourceCollection does not have an associated CRS, this one is used.
clipGeometry - the geometry used for clipping
clipCrs - the CRS of the clipGeometry
targetID - the ID of the resulting FeatureCollection. If null the ID of the sourceCollection is used.
targetCrs - the CRS the FeatureCollection is reprojected to. If null no reprojection is applied.
Returns:
the clipped and possibly reprojectd FeatureCollection
Throws:
IllegalStateException - if the sourceCollection has no associated CRS and defaultSourceCrs is null

createGeoBoundaryPolygon

@Deprecated
public static com.vividsolutions.jts.geom.Geometry createGeoBoundaryPolygon(Product product)
Deprecated. since BEAM 4.10, use FeatureUtils instead



Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.