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_Covers
BOOLEAN ST_CoveredBy(GEOGRAPHY point, GEOGRAPHY polygon) BOOLEAN ST_CoveredBy(GEOMETRY point, GEOMETRY polygon)
polygon
POLYGON
MULTIPOLYGON
point
POINT
GEOMETRY
NULL
EMPTY
false
SELECT ST_CoveredBy( ST_GeomFromText('POINT (0 5)', 'EPSG:3857'), ST_GeomFromText('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))', 'EPSG:3857')); -- true