Calculates all statistics for each zone in a table.
[Visual Basic .NET] Public Function ZonalStatisticsAsTable ( _ ByVal zone As IGeoDataset, _ ByVal value As IGeoDataset, _ ByVal ignoreNoData As Boolean _ ) As ITable
[C#] public ITable ZonalStatisticsAsTable ( IGeoDataset zone, IGeoDataset value, bool ignoreNoData );
[C++]
HRESULT ZonalStatisticsAsTable(
IGeoDataset* zone,
IGeoDataset* value,
VARIANT_BOOL ignoreNoData,
ITable** statisticsTable
);
[C++]Parameters
zone [in]zone is a parameter of type IGeoDataset
value [in]value is a parameter of type IGeoDataset
ignoreNoData [in] ignoreNoData is a parameter of type VARIANT_BOOL statisticsTable [out, retval]statisticsTable is a parameter of type ITable
Product Availability
Remarks
zone | an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor that identifies the zone for each cell location |
value | an input integer or floating-point Raster, RasterDataset, RasterBand, or RasterDescriptor defining the values of the cells that are to be used in the zonal calculations |
ignoreNoData | a Boolean defining the manner in which NoData values on the valueDataset that fall within a zone defined by the zoneDataset will influence the output results
If True, then if a NoData value exists in a cell on the value Raster within any particular zone defined by zoneDataset, the cell will be ignored and only cells on the value Raster that have data values within the zone will be used in the processing for the output. If False, then if a NoData value exists on the value Raster within any particular zone defined by zoneDataset, there is insufficient information to complete the computation of the values for all of the cells within the zone, therefore, the entire zone will receive the NoData value on the output Raster and will not appear in the output table. |