ST_Equals

Determine is two geometries are equal, that is, whether their DE-9IM intersection matrix is T*F**FFF*.

Syntax

ST_Equals(geo1, geo2);
geo1
The first input geometry.

Type: VARCHAR(ANY)

geo2
The second input geometry.

Type: VARCHAR(ANY)

Returns

A value of type BOOL that is TRUE if the two geometries are equal; otherwise FALSE.

Examples

SELECT inza..ST_Equals(inza..ST_WKTToSQL('LINESTRING (0 0, 10 10)'),
            inza..ST_WKTToSQL('LINESTRING (0 0, 10 10)'));

ST_EQUALS
---------
t
(1 row)