RasterLayer.GetStatistics

RasterLayer.GetStatistics method

Calculate summary statistics consisting of count, sum, mean, min, max.

public RasterStatistics GetStatistics(int bandIndex = 0, bool excludeNodataValue = true)
ParameterTypeDescription
bandIndexInt32The index of the band. Numbering starts from 0.
excludeNodataValueBooleanAllows to exclude ’nodata’ values. If ’excludeNodataValue’ is set to false, then all pixels are considered.

Return Value

The summary statistics.

See Also