ST_OrderingEquals
更新時(shí)間:
如果兩個(gè)Geometry對(duì)象相同,而且坐標(biāo)點(diǎn)的順序也相同,返回True。
語法
boolean ST_OrderingEquals(geometry a , geometry b);
參數(shù)
參數(shù)名稱 | 描述 |
a | 第一個(gè)Geometry對(duì)象。 |
b | 第二個(gè)Geometry對(duì)象。 |
示例
對(duì)比ST_OrderingEquals和ST_Equals:
SELECT ST_Equals(g1,g2),ST_OrderingEquals(g1,g2) FROM (SELECT 'LINESTRING(0 1,2 3)'::geometry as g1,'LINESTRING(2 3,0 1)'::geometry as g2) as test;
st_equals | st_orderingequals
-----------+-------------------
t | f
(1 row)
文檔內(nèi)容是否對(duì)您有幫助?