Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
判断多边形是否严格包含一个点。
BOOLEAN ST_Contains(GEOGRAPHY polygon, GEOGRAPHY point) BOOLEAN ST_Contains(GEOMETRY polygon, GEOMETRY point)
POINT
POLYGON
MULTIPOLYGON
GEOMETRY
GEOGRAPHY
NULL
EMPTY
false
BOOLEAN ST_Contains(VARCHAR shape1, VARCHAR shape2)
VARCHAR
SELECT ST_Contains( ST_GeomFromText('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))', 'EPSG:3857'), ST_GeomFromText('POINT (5 5)', 'EPSG:3857')); -- true SELECT ST_Contains( ST_GeogFromText('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))'), ST_GeogFromText('POINT (0 5)')); -- false:点位于边界上