标签:net int UNC sel from detail poi 情况 geometry
SET @x = 121;
SET @y = 30;
-- SET @point = CONCAT(‘POINT(‘,@x,‘ ‘,@y,‘)‘);
set @point= Point(@x,@y);
set @geometry=ST_GeomFromText(‘POLYGON((121.044 30.594, 121.046 30.59, ..., 121.046 30.5948, 121.044 30.594))‘);
SELECT ST_Contains(@geometry,@point);//面包含点
SELECT ST_Within(@point, @geometry);//点在面
https://blog.csdn.net/zshtiger2414/article/details/77975958
https://dev.mysql.com/doc/refman/5.6/en/spatial-relation-functions-object-shapes.html#function_st-overlaps
MySQL5.6中查询多边形包含点情况(ST_Contains、ST_Within)
标签:net int UNC sel from detail poi 情况 geometry
原文地址:https://www.cnblogs.com/TTonly/p/12737780.html