public class ZonalStatistics extends BaseStatisticsOperationJAI
ZonalStats operation but implements a new version of the
"ZonalStats" operation. The main difference between the two operations is that inside this
version multiple geometries are handled, instead of the old version which supports only one
geometry per time.OperationJAI.Parameters| Modifier and Type | Field and Description |
|---|---|
static String |
GT_SYNTHETIC_PROPERTY_ZONALSTATS
String key for getting the ZoneGeometry list. |
static Logger |
LOGGER
Logger for this class. |
ROI, SPATIAL_SUBSAMPLING_X, SPATIAL_SUBSAMPLING_Yoperation, RENDERED_MODEPRIMARY_SOURCE_INDEX, SOURCE_0descriptor| Constructor and Description |
|---|
ZonalStatistics()
Constructs a default
"ZonalStatistics" operation. |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,?> |
getProperties(RenderedImage data,
CoordinateReferenceSystem crs,
InternationalString name,
MathTransform toCRS,
GridCoverage2D[] sources,
OperationJAI.Parameters parameters)
Prepares the properties to be given to the coverage created by the
deriveGridCoverage method. |
protected ParameterBlockJAI |
prepareParameters(ParameterValueGroup parameters)
Copies parameter values from the specified
ParameterValueGroup to the ParameterBlockJAI |
convertPolygoncreateRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getQuantitative, handleJAIEXTParams, handleROINoDataInternal, handleROINoDataProperties, hashCode, resampleToCommonGeometryextractSources, getFactorygetDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toStringpublic static final String GT_SYNTHETIC_PROPERTY_ZONALSTATS
String key for getting the ZoneGeometry list.public ZonalStatistics()
throws OperationNotFoundException
"ZonalStatistics" operation.OperationNotFoundExceptionprotected ParameterBlockJAI prepareParameters(ParameterValueGroup parameters)
ParameterValueGroup to the ParameterBlockJAIprepareParameters in class BaseStatisticsOperationJAIparameters - The ParameterValueGroup to be copied.ParameterValueGroup as a JAI block.OperationJAI.prepareParameters(org.opengis.parameter.ParameterValueGroup)protected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform toCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters)
OperationJAIderiveGridCoverage method. The default implementation returns null.getProperties in class OperationJAIdata - The RenderedImage created by this operation.crs - The coordinate reference system assigned to the coverage this OperationJAI
will produce.name - The name assigned to the coverage this OperationJAI will produce.toCRS - The transform from grid to crs to be
assigned to the coverage this OperationJAI will produce.sources - The sources to be assigned to the coverage this OperationJAI will
produce.parameters - The parameters that were used by this OperationJAI.Map with the properties generated by this OperationJAI or null if
we haven't any.Copyright © 1996–2019 Geotools. All rights reserved.