I am using ST_Intersects to check if two polygons intersect. Relevant part of my query is:
SELECT entity_number
FROM coordinates
WHERE ST_INTERSECTS($1, location)
It works well to determine if one polygon crosses the other's surface:
I expected ST_Intersects to return false when two polygons share sides, but it does not:
I read about other methods like ST_Covers, ST_Contains, ST_ContainsProperly, ST_Within ,ST_DWithin
. But i am not sure which one suits my needs.
Is there any method that allows two polygons to share sides?