ST_Distinct4ma — 計算鄰域中唯一像素值的數量之柵格處理函式。
float8 ST_Distinct4ma(
float8[][] matrix, text nodatamode, text[] VARIADIC args)
;
double precision ST_Distinct4ma(
double precision[][][] value, integer[][] pos, text[] VARIADIC userargs)
;
計算像素鄰域中唯一像素值的數量。
![]() |
|
變體 1 是一個專門的回呼函式,用作 ST_MapAlgebraFctNgb 的回呼參數。 |
![]() |
|
變體 2 是一個專門的回呼函式,用作 ST_MapAlgebra (回呼函式版本) 的回呼參數。 |
![]() |
|
由於 2.1.0 版本已棄用 ST_MapAlgebraFctNgb,因此不建議使用變體 1。 |
可用性:2.0.0
增強功能:2.1.0 新增變體 2
SELECT rid, st_value( st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_distinct4ma(float[][],text,text[])'::regprocedure, 'ignore', NULL), 2, 2 ) FROM dummy_rast WHERE rid = 2; rid | st_value -----+---------- 2 | 3 (1 row)