赞
踩
点位在多边形内判断sql:
select name, lng, lat from zd where point(lng, lat) <@ polygon(path('(( 118.22342, 23.1299494 ), (119.292001, 29.993993), (118.44520992, 25.1320021))'));
如果lng, lat存的为字符串,则需要转为数值类型,例如:
to_number(lng, '999.99999999')
更多运算参考:
参考博客链接: https://www.cnblogs.com/alianbog/p/5657325.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。