我有以下查询: -
SELECT
ST_Overlaps(a,b) AS a_overlap_b
FROM
(SELECT ST_GeomFromText
('LINESTRING(-118.291686 34.018886,-118.292677 34.022562,-118.291231 34.025650,-118.2906224 34.0244091,-118.286493 34.020362)')
AS a,
ST_GeomFromText
('LINESTRING(-118.282340 34.018824,-118.289132 34.020923,-118.287198 34.023338,-118.282791 34.021858,-118.280270 34.022503)')
AS b)
AS Foo)
当我使用ST_Overlaps运行此查询时,它会给我错误,而ST_Intersects给我真实。但是当我构建KML文件并在谷歌地球中将其可视化时,我看到两个多边形也重叠。有人可以告诉我为什么吗?
答案 0 :(得分:2)
将“几何”更改为多边形而不是线串。