The Statistics operator is a plot operator that computes count statistics over
Statistics
The output is a JSON description.
For instance, you want to get an overview of a raster data source. Then, you can use this operator to get basic count statistics.
In the case of vector data, the operator generates one statistic for each of the selected numerical attributes. The operator returns an error if one of the selected attributes is not numeric.
columnNames
Vec<String>
["x","y"]
For raster data, the operator generates one statistic for each input raster.
Raster-1
Raster-2
["A","B"]
The operator consumes exactly one vector or multiple raster operators.
source
MultipleRasterOrSingleVectorSource
The operator returns an error in the following cases.
attribute
{ "type": "Statistics", "params": { "columnNames": ["A"] }, "sources": { "source": [ { "type": "GdalSource", "params": { "data": { "type": "internal", "datasetId": "a626c880-1c41-489b-9e19-9596d129859c" } } } ] } }
{ "A": { "valueCount": 6, "validCount": 6, "min": 1.0, "max": 6.0, "mean": 3.5, "stddev": 1.707 } }