Package org.geotools.process.raster
Class RasterZonalStatistics2
- Object
-
- RasterZonalStatistics2
-
- All Implemented Interfaces:
RasterProcess
public class RasterZonalStatistics2 extends Object implements RasterProcess
This class wraps the "ZonalStats2" OperationJAI and executes the selected operation with the defined parameters. No transformation of the optional classifier image is needed because inside the process the classifier image is already transformed by theGridCoverage2DRIAoperation. By default the input band is set 0, and the statistics to MEAN, MAX, MIN, EXTREMA, VARIANCE, STANDARD DEVIATION.The main difference between this class and
RasterZonalStatisticsis the fact that this operation will calculate the requested statistics for all theSimpleFeatures in a single step, without having to iterate on the features.This Process is a simple wrapper of the
ZonalStatisticsoperation- Author:
- geosolutions
-
-
Constructor Summary
Constructors Constructor Description RasterZonalStatistics2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ZoneGeometry>execute(GridCoverage2D coverage, int[] bands, List<SimpleFeature> zones, GridCoverage2D classifier, Range nodata, Geometry mask, boolean useROIAccessor, Polygon roi, Statistics.StatsType[] stats, double[] minbounds, double[] maxbounds, int[] numbins, List<Range> rangeData, boolean localStats)
-
-
-
Method Detail
-
execute
public List<ZoneGeometry> execute(GridCoverage2D coverage, int[] bands, List<SimpleFeature> zones, GridCoverage2D classifier, Range nodata, Geometry mask, boolean useROIAccessor, Polygon roi, Statistics.StatsType[] stats, double[] minbounds, double[] maxbounds, int[] numbins, List<Range> rangeData, boolean localStats)
-
-