查詢網格對象代表的空間範圍和幾何對象是否是內含項目關聯性。
文法
boolean ST_Contains(geomgrid grid, geometry geom);
boolean ST_Contains(geometry geom, geomgrid grid);
boolean ST_Contains(geomgrid grid1, geomgrid grid2);
參數
參數名稱 | 描述 |
grid | 網格對象。 |
geom | 幾何對象。 |
樣本
select st_contains(ST_gridfromtext('G001331032213300013'),
ST_geomfromtext('POINT(116.31522216796875 39.910277777777778)',4490));
st_intersects
---------------
f
select st_contains(ST_gridfromtext('G00133103221330'),
ST_gridfromtext('G001331032213300013'))
st_contains
-------------
t