Skip to content

Checks whether one geometry contains another. Returns 1 if true.

func.st_contains(<geometry1>, <geometry2>)
func.st_contains(get_column(table, 'area'), func.st_point(1, 1))
┌───┐
1
└───┘
ST_CONTAINS(<geometry1>, <geometry2>)
SELECT ST_CONTAINS(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0))'), ST_POINT(5, 5));
┌───┐
1
└───┘