【发布时间】:2015-01-10 03:03:03
【问题描述】:
我想用PostgreSQL找出同一个查询的交集和差异(其他数据库的逻辑应该是一样的)。
如何在同一个查询中结合 ST_Intersection 和 ST_Difference 并返回结果。
我试过了:
select 1 as keys,(st_intersection(tale1.the_geom,table2.the_geom)) from table1,table2
UNION select ,st_difference(table1.the_geom,table2.the_geom) from table1,table2;
但是在select ^ ,st_difference(....
【问题讨论】:
-
这个问题似乎已经做了一些努力,所以我努力回答它,甚至认为它似乎是当前一系列分配问题的一部分。
标签: mysql postgresql postgis psql