Class ZonalStatistics
Object
AbstractOperation
Operation2D
OperationJAI
BaseStatisticsOperationJAI
ZonalStatistics
- All Implemented Interfaces:
Serializable,Operation
This operation is similar to the
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.- Author:
- Nicola Lagomarsini, GeoSolutions SAS
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class OperationJAI
OperationJAI.Parameters -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStringkey for getting theZoneGeometrylist.static final LoggerLoggerfor this class.Fields inherited from class BaseStatisticsOperationJAI
ROI, SPATIAL_SUBSAMPLING_X, SPATIAL_SUBSAMPLING_YFields inherited from class OperationJAI
operation, RENDERED_MODEFields inherited from class Operation2D
PRIMARY_SOURCE_INDEX, SOURCE_0Fields inherited from class AbstractOperation
descriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform toCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters) Prepares the properties to be given to the coverage created by thederiveGridCoveragemethod.protected ParameterBlockImageNprepareParameters(ParameterValueGroup parameters) Copies parameter values from the specifiedParameterValueGroupto theParameterBlockImageNMethods inherited from class BaseStatisticsOperationJAI
convertPolygonMethods inherited from class OperationJAI
createRenderedImage, deriveCategory, deriveGridCoverage, deriveName, deriveRange, deriveSampleDimension, deriveUnit, doOperation, equals, extractSources, getJAI, getOperationDescriptor, getQuantitative, handleJAIEXTParams, handleROINoDataInternal, handleROINoDataProperties, hashCode, resampleToCommonGeometryMethods inherited from class Operation2D
extractSources, getFactoryMethods inherited from class AbstractOperation
getDescription, getDocURL, getName, getNumSources, getParameters, getVendor, getVersion, toString
-
Field Details
-
Constructor Details
-
ZonalStatistics
Constructs a default"ZonalStatistics"operation.- Throws:
OperationNotFoundException
-
-
Method Details
-
prepareParameters
Copies parameter values from the specifiedParameterValueGroupto theParameterBlockImageN- Overrides:
prepareParametersin classBaseStatisticsOperationJAI- Parameters:
parameters- TheParameterValueGroupto be copied.- Returns:
- A copy of the provided
ParameterValueGroupas a ImageN block. - See Also:
-
getProperties
protected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform toCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters) Description copied from class:OperationJAIPrepares the properties to be given to the coverage created by thederiveGridCoveragemethod. The default implementation returnsnull.- Overrides:
getPropertiesin classOperationJAI- Parameters:
data- TheRenderedImagecreated by this operation.crs- The coordinate reference system assigned to the coverage thisOperationJAIwill produce.name- The name assigned to the coverage thisOperationJAIwill produce.toCRS- The transform from grid tocrsto be assigned to the coverage thisOperationJAIwill produce.sources- The sources to be assigned to the coverage thisOperationJAIwill produce.parameters- The parameters that were used by thisOperationJAI.- Returns:
- a
Mapwith the properties generated by thisOperationJAIor null if we haven't any.
-