This processor performs an (arithmetical) rule only on the raster cells,
which are located in a specified bounding box. For this purpose,
the given rule is automatically extended by an ITE clause, which checks
whether a cell is located in the envelope.
Input parameters (besides the parameters of RasterCalculatorProcessor):
Key coordType (optional): Indicated whether the bounding box is specified
by raster or geo coordinates (possible values:
raster, geo; Default raster)
Keys x0, y0: The location of the bounding box. Note:
When using geo coordinates, the lower left corner
of the envelope is expected! When using raster
coordinates the upper left corner is expected!
Keys x1, y1, width, height:
Specify the dimension of the bounding box. Either
width and height or x1
and y1 are mandatory. Note:
When using geo coordinates, the upper right corner
of the envelope is expected for x1/y1! When using raster
coordinates the lower right corner is expected!
Key envelopes: Instead of specifying the envelope directly
by x0, y0, ... a reference key to
an com.vividsolutions.jts.geom.EnvelopeArrayList can
be specified to define the area the calculation
will be performed on.
Key polygons: Instead of specifying the envelope directly
by x0, y0, ... a reference key to
a org.geotools.feature.FeatureCollection can be specified,
where every Feature (must be a closed LineString-,
LinearRing- or Polygon-Feature) defines a part of
the area the calculation will be performed on.
public class SubRasterCalculatorProcessor extends RasterCalculatorProcessor { // Public Constructors public SubRasterCalculatorProcessor(); // Constants public static final String COORDTYPE_KEY; public static final String COORDTYPE_VALUE_GEO; public static final String COORDTYPE_VALUE_RASTER; public static final String X0_KEY; public static final String Y0_KEY; public static final String X1_KEY; public static final String Y1_KEY; public static final String WIDTH_KEY; public static final String HEIGHT_KEY; public static final String ENV_KEY; public static final String POLYGONS_KEY; // Protected Instance Variables protected String iCoordType; protected ArrayList iEnvelopes; protected ArrayList iGeometries; // Public Instance Methods