简体   繁体   中英

ST_Overlaps and ST_intersects

I have the following query:-

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)

When I run this query with ST_Overlaps then it gives me false while ST_Intersects give me true. But When I build KML file and visualize it in google earth then I see the two polygons overlapping also. Can some one tell me why?

将几何更改为多边形而不是线串。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM