public class ZonalStats extends BaseStatisticsOperationJAI
ZonalStatsDescriptor
inside a GeoTools operation in order to make it spatial-aware.OperationJAI.Parameters
Modifier and Type | Field and Description |
---|---|
static String |
GT_SYNTHETIC_PROPERTY_APPROX_MEDIAN
String key for getting the approx median vector. |
static String |
GT_SYNTHETIC_PROPERTY_MAX
String key for getting the max vector. |
static String |
GT_SYNTHETIC_PROPERTY_MEAN
String key for getting the mean vector. |
static String |
GT_SYNTHETIC_PROPERTY_MEDIAN
String key for getting the median vector. |
static String |
GT_SYNTHETIC_PROPERTY_MIN
String key for getting the min vector. |
static String |
GT_SYNTHETIC_PROPERTY_RANGE
String key for getting the range vector. |
static String |
GT_SYNTHETIC_PROPERTY_SDEV
String key for getting the standard deviation vector. |
static String |
GT_SYNTHETIC_PROPERTY_SUM
String key for getting the sum vector. |
static String |
GT_SYNTHETIC_PROPERTY_VAR
String key for getting the variance vector. |
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 |
---|
ZonalStats()
Constructs a default
"ZonalStats" operation. |
Modifier and Type | Method and Description |
---|---|
protected Map<String,?> |
getProperties(RenderedImage data,
CoordinateReferenceSystem crs,
InternationalString name,
MathTransform toCRS,
GridCoverage2D[] sources,
OperationJAI.Parameters parameters)
Prepare the properties for this ZonalStats operation.
|
convertPolygon, prepareParameters
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_MIN
String
key for getting the min vector.public static final String GT_SYNTHETIC_PROPERTY_MAX
String
key for getting the max vector.public static final String GT_SYNTHETIC_PROPERTY_MEAN
String
key for getting the mean vector.public static final String GT_SYNTHETIC_PROPERTY_VAR
String
key for getting the variance vector.public static final String GT_SYNTHETIC_PROPERTY_SDEV
String
key for getting the standard deviation vector.public static final String GT_SYNTHETIC_PROPERTY_RANGE
String
key for getting the range vector.public static final String GT_SYNTHETIC_PROPERTY_MEDIAN
String
key for getting the median vector.public static final String GT_SYNTHETIC_PROPERTY_APPROX_MEDIAN
String
key for getting the approx median vector.public ZonalStats() throws OperationNotFoundException
"ZonalStats"
operation.OperationNotFoundException
protected Map<String,?> getProperties(RenderedImage data, CoordinateReferenceSystem crs, InternationalString name, MathTransform toCRS, GridCoverage2D[] sources, OperationJAI.Parameters parameters)
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.OperationJAI#getProperties(RenderedImage, CoordinateReferenceSystem,
InternationalString, MathTransform, GridCoverage2D[],
org.geotools.coverage.processing.OperationJAI.Parameters),
Copyright © 1996–2019 Geotools. All rights reserved.