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.
判断点是否严格位于多边形内部。
ST_Contains
BOOLEAN ST_Within(GEOGRAPHY point, GEOGRAPHY polygon) BOOLEAN ST_Within(GEOMETRY point, GEOMETRY polygon)
polygon
POLYGON
MULTIPOLYGON
point
POINT
GEOMETRY
NULL
EMPTY
false
SELECT ST_Within( ST_GeomFromText('POINT (5 5)', 'EPSG:3857'), ST_GeomFromText('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))', 'EPSG:3857')); -- true