この関数は、ラスターオブジェクトのバンドに関する統計情報を JSON 形式で返します。 バンドに統計情報がない場合、関数は null 値を返します。

構文

text ST_Statistics(raster raster_obj, integer band);

パラメーター

パラメーター  説明 
raster_obj ラスターオブジェクト
band 0 から始まるバンドのシーケンス番号

select ST_Statistics(raster_obj, 0) from raster_table where id=1;

__________________________________
'{	"min": 0.00, "max": 255.00, "mean": 125.00, "std": 23.123, "approx": false}'