表格中有多少个相交?

时间:2017-11-17 09:15:33

标签: postgresql

longitude | latitude
----------+---------
1         | 2
2         | 3
4         | 5
2         | 3
5         | 6
1         | 2

如何找到桌子上有多少个相交点?在这种情况下1,2 e 2,3

SELECT ST_Intersects

1 个答案:

答案 0 :(得分:2)

E.g:

select longitude, latidude, count(0) intersects from
 table_name group by  longitude, latidude having count(0) > 1
相关问题