Skip to main content
Version: Next

rasterMetrics()

function rasterMetrics(raster, options): Promise<Metric[]>

Calculates summary metrics (stats/area) on given raster, optionally intersecting raster with provided feature (zonal statistics). If feature is a collection, then calculate metrics for each individual feature as well as the collection as a whole. This can be disabled with includeChildMetrics: false. Defaults to assuming a continuous raster but also supports categorical option

Parameters

ParameterTypeDescription
rasterGeorasterCloud-optimized geotiff, loaded via loadCog or geoblaze.parse()
optionsOverlapRasterOptions-

Returns

Promise<Metric[]>