SQL判断某个坐标是否落在一个区域内

SELECT * ,st_within(ST_GeomFromText(CONCAT('POINT(',ab.start_lng,' ',ab.start_lat,')')),ST_GeomFromText('POLYGON((

120.456666 36.1111111,

120.456666 36.1111111,

120.456666 36.1111111,

120.456666 36.1111111,

120.456666 36.1111111))'))as htype from ab 

发布了5 篇原创文章 · 获赞 1 · 访问量 250

猜你喜欢

转载自blog.csdn.net/weixin_45793418/article/details/103819934
今日推荐