ClearSKY FaviconClearSKY Polygon Tools
Back to Glossary

Equals (spatial predicate)

True when two geometries represent the exact same set of points (spatially equal).

Category: Topology · Also known as: ST_Equals, spatial equals

Definition (expanded)

Spatial equality means the shapes match as geometries, not as text. Two polygons can be spatially equal even if their vertex order differs, ring orientation differs, or they use different but equivalent segmentations along the boundary.

Examples

PostGIS equals

SQL

SELECT ST_Equals(a.geom, b.geom) FROM a, b;

Common mistakes