This topic describes the ST_ContainsProperly function. This function identifies the spatial relationship between two raster objects or between a raster object and a geometric object to determine whether the first specified object properly contains the second.


bool  ST_ContainsProperly(raster rast1, raster rast2);
bool  ST_ContainsProperly(raster rast, geometry geom);
bool  ST_ContainsProperly(geometry geom, raster rast);


Parameter Description
rast1 The raster object 1.
rast2 The raster object 2.
rast A raster object.
geom A geometric object.


FROM tbl_a a, tbl_b b
WHERE ST_ContainsProperly(a.rast, b.rast)