The error format '##keyword' in a lot of docs. This pr is to repair document format. #4335
2.1 KiB
2.1 KiB
title, language
| title | language |
|---|---|
| `ST_Contains' | en |
`ST_Contains'
Description
Syntax
BOOL ST_Contains(GEOMETRY shape1, GEOMETRY shape2)
Judging whether geometric shape 1 can contain geometric shape 2 completely
example
mysql> SELECT ST_Contains(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"), ST_Point(5, 5));
+----------------------------------------------------------------------------------------+
| st_contains(st_polygon('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))'), st_point(5.0, 5.0)) |
+----------------------------------------------------------------------------------------+
| 1 |
+----------------------------------------------------------------------------------------+
mysql> SELECT ST_Contains(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"), ST_Point(50, 50));
+------------------------------------------------------------------------------------------+
| st_contains(st_polygon('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))'), st_point(50.0, 50.0)) |
+------------------------------------------------------------------------------------------+
| 0 |
+------------------------------------------------------------------------------------------+
keyword
ST_CONTAINS,ST,CONTAINS w