Why a geometry can have bounds and still fail a predicate#

Bounds retain the smallest and largest coordinates, but they do not describe every part of a geometry. A point can lie inside those bounds and still miss the geometry itself.

The envelope includes space beyond the diagonal#

The triangle is POLYGON ((0 0, 4 0, 0 4, 0 0)), and the point is POINT (3 3).

y
4   +
    |
3   |   +       • (3,3)
    |
2   |       +
    |
1   |           +
    |
0   +---------------+--- x
    0   1   2   3   4

The sloping edge connects the triangle vertices at (0,4) and (4,0). Both point coordinates fall between 0 and 4, the extrema of the triangle. The triangle ends at x+y=4, while the point has x+y=6. An exact Intersects comparison on this valid pair therefore predicts false.

The same extrema can enclose a crossing ring#

Connect (0,0),(4,4),(0,4),(4,0),(0,0) in order, as shown below.

(0,4) +-------+ (4,4)
       \     /
        \   /
         \ /  (2,2)
         / \
        /   \
(0,0) +-------+ (4,0)

The bounds still span 0 to 4 on each axis, but the first and third segments cross at (2,2). A polygon validity check considers how the ring’s edges meet. Extrema alone discard the information needed to detect that crossing. The behavior of a particular predicate on this self-crossing input remains open pending profile-specific evidence.

What did the comparison return?#

Outcome

What it tells you

False

The comparison was evaluated and did not match.

NULL

A strict SQL function can yield NULL when an argument is NULL.

Evaluation error

A diagnostic was reported, and the spatial relationship remains unresolved.

NULL and EMPTY also need not behave alike. Eager count_coordinates yields zero for both, while centroid yields NULL for NULL and Point EMPTY for EMPTY. For exact overloads, admitted inputs and function-specific results, see Spatial functions and geometry semantics.

Coincident edges#

A probe edge can cross two coincident polygon edges while lying inside the polygon on both sides. Examples include MultiPolygon parts that share an edge and a spike folded onto itself. For such a probe inside the polygon, PostGIS returns true for coverage. cuGeo returns false in this case. This known defect also affects containment, their converse predicates and equality of polygons that use coverage in both directions.