All pages
Powered by GitBook
1 of 1

Loading...

CONTAINS

Synonym for ST_CONTAINS. Checks if the first geometry completely contains the second geometry, with no points of the second geometry outside the first.

Syntax

Contains(g1,g2)

Description

Returns 1 or 0 to indicate whether a geometry g1 completely contains geometry g2. CONTAINS() is based on the original MySQL implementation and uses object bounding rectangles, while uses object shapes.

This tests the opposite relationship to .

This page is licensed: GPLv2, originally from

ST_CONTAINS()
Within()
fill_help_tables.sql