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_Y
operation, RENDERED_MODE
PRIMARY_SOURCE_INDEX, SOURCE_0
descriptor
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 |
convertPolygon
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getQuantitative, handleJAIEXTParams, handleROINoDataInternal, handleROINoDataProperties, hashCode, resampleToCommonGeometry
extractSources, getFactory
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toString
public static final String GT_SYNTHETIC_PROPERTY_ZONALSTATS
String
key for getting the ZoneGeometry
list.public ZonalStatistics() throws OperationNotFoundException
"ZonalStatistics"
operation.OperationNotFoundException
protected ParameterBlockJAI prepareParameters(ParameterValueGroup parameters)
ParameterValueGroup
to the ParameterBlockJAI
prepareParameters
in class BaseStatisticsOperationJAI
parameters
- 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)
OperationJAI
deriveGridCoverage
method. The default implementation returns null
.getProperties
in class OperationJAI
data
- 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.