This document is archived and information here might be outdated.  Recommended version.


ILocalOp.LocalStatistics Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (SpatialAnalyst)  

ILocalOp.LocalStatistics Method

Calculates the local statistics of the GeoDataset.

[Visual Basic .NET]
Public Function LocalStatistics ( _
    ByVal LocalData As IGeoDataset, _
    ByVal Type As esriGeoAnalysisStatisticsEnum _
) As IGeoDataset
[C#]
public IGeoDataset LocalStatistics (
    IGeoDataset LocalData,
    esriGeoAnalysisStatisticsEnum Type
);
[C++]
HRESULT LocalStatistics(
  IGeoDataset* LocalData,
  esriGeoAnalysisStatisticsEnum Type,
  IGeoDataset** statisticsGeoDataset
);
[C++]

Parameters LocalData [in]
LocalData is a parameter of type IGeoDataset Type [in]
Type is a parameter of type esriGeoAnalysisStatisticsEnum statisticsGeoDataset [out, retval]
statisticsGeoDataset is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.

Remarks

LocalData

a multiband input Raster, RasterDataset, RasterBand, or RasterDescriptor that identifies the values for the local processing

type

an esriGeoAnalysisStatisticsEnum defining the local statistic to calculate for each location on the input Rasters

The enumeration types are:
esriGeoAnalysisStatsMajority for the majority value,
esriGeoAnalysisStatsMaximum for the maximum value,
esriGeoAnalysisStatsMean for the mean,
esriGeoAnalysisStatsMedian for the median,
esriGeoAnalysisStatsMinimum for the minimum value,
esriGeoAnalysisStatsMinority for the minority value,
esriGeoAnalysisStatsRange for the range of values,
esriGeoAnalysisStatsStd for the standard deviation,
esriGeoAnalysisStatsSum for the sum of the values, or
esriGeoAnalysisStatsVariety for the variety of the values.

 

See Also

ILocalOp Interface