ST_OrderingEquals — 测试两个几何对象是否表示相同的几何对象,并且点的方向顺序是否相同
boolean ST_OrderingEquals(
geometry A, geometry B)
;
ST_OrderingEquals 比较两个几何对象,如果几何对象相等且坐标顺序相同,则返回 t(TRUE);否则返回 f(FALSE)。
此函数按照 ArcSDE SQL 规范实现,而不是 SQL-MM。http://edndoc.esri.com/arcsde/9.1/sql_api/sqlapi3.htm#ST_OrderingEquals |
此方法实现了 SQL/MM 规范。SQL-MM 3: 5.1.43
SELECT ST_OrderingEquals(ST_GeomFromText('LINESTRING(0 0, 10 10)'), ST_GeomFromText('LINESTRING(0 0, 5 5, 10 10)')); st_orderingequals ----------- f (1 row) SELECT ST_OrderingEquals(ST_GeomFromText('LINESTRING(0 0, 10 10)'), ST_GeomFromText('LINESTRING(0 0, 0 0, 10 10)')); st_orderingequals ----------- t (1 row) SELECT ST_OrderingEquals(ST_Reverse(ST_GeomFromText('LINESTRING(0 0, 10 10)')), ST_GeomFromText('LINESTRING(0 0, 0 0, 10 10)')); st_orderingequals ----------- f (1 row)