~(geometry,box2df) — Returns TRUE
if a geometry's 2D bonding box contains a 2D float precision bounding box (GIDX).
boolean ~(
geometry A , box2df B )
;
The ~
operator returns TRUE
if the 2D bounding box of a geometry A contains the 2D bounding box B, using float precision. This means that if B is a (double precision) box2d, it will be internally converted to a float precision 2D bounding box (BOX2DF)
This operand is intended to be used internally by BRIN indexes, more than by users. |
Availability: 2.3.0 support for Block Range INdexes (BRIN) was introduced. Requires PostgreSQL 9.5+.
This method supports Circular Strings and Curves.
This function supports Polyhedral surfaces.
SELECT ST_Buffer(ST_GeomFromText('POINT(1 1)'), 10) ~ ST_MakeBox2D(ST_Point(0,0), ST_Point(2,2)) AS contains; contains ---------- t (1 row)