確定指定的外包框是否包含某些維度。
文法
bool ST_HasXY(boxndf box);
bool ST_HasZ(boxndf box);
bool ST_HasT(boxndf box);參數
| 參數名稱 | 描述 |
| box | 指定的外包框。 |
描述
確認指定的外包框是否包含某個或某些維度。由於x維度和y維度為綁定關係,外包框中只會存在全部包含或全不包含的情況。
樣本
postgres=# select ST_hasz(ST_MakeBox2dt(0,0,'2000-01-01'::timestamp, 20,20, '2020-01-01'::timestamp));
st_hasz
---------
f
postgres=# select ST_hast(ST_MakeBox2dt(0,0,'2000-01-01'::timestamp, 20,20, '2020-01-01'::timestamp));
st_hast
---------
t