Nome

ST_OrderingEquals — Tests if two geometries represent the same geometry and have points in the same directional order

Sinossi

boolean ST_OrderingEquals(geometry A, geometry B);

Descrizione

ST_OrderingEquals compares two geometries and returns t (TRUE) if the geometries are equal and the coordinates are in the same order; otherwise it returns f (FALSE).

[Nota]

This function is implemented as per the ArcSDE SQL specification rather than SQL-MM. http://edndoc.esri.com/arcsde/9.1/sql_api/sqlapi3.htm#ST_OrderingEquals

Questo metodo implementa la specifica SQL/MM. SQL-MM 3: 5.1.43

Esempi

Code
SELECT ST_OrderingEquals('LINESTRING(0 0,10 10)',
'LINESTRING(0 0,5 5,10 10)');
Output
f
Figure
Geometry figure for visual-st-orderingequals-01
Code
SELECT ST_OrderingEquals('LINESTRING(0 0,10 10)',
'LINESTRING(0 0,10 10)');
Output
t
Figure
Geometry figure for visual-st-orderingequals-02
Code
SELECT ST_OrderingEquals('POLYGON((0 0,0 1,1 1,1 0,0 0))',
'POLYGON((0 0,1 0,1 1,0 1,0 0))');
Output
f
Figure
Geometry figure for visual-st-orderingequals-03

Si veda anche

&&, ST_Equals, ST_Reverse