st_valuecount(raster, double precision, double precision)


Description

args: rast, searchvalue, roundto=0 - Returns a set of records containing a pixel band value and count of the number of pixels in a given band of a raster (or a raster coverage) that have a given set of values. If no band is specified defaults to band 1. By default nodata value pixels are not counted. and all other values in the pixel are output and pixel band values are rounded to the nearest integer.

Parameters

Name Type Mode
rast USER-DEFINED IN
searchvalue double precision IN
roundto double precision IN