You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 2nd geometry covers the 1st one, because each point in the 1st geometry lies inside the 2nd one, according to the definition of ST_Covers:
ST_Covers(A, B) ⇔ A ⋂ B = B
However, PostGIS doesn't consider the ST_Covers relation, which seems to be a bug. After normalizing MULTIPOLYGON to POLYGON as g3, ST_Covers(g3, g1) gives the correct answer.
The text was updated successfully, but these errors were encountered:
cuteDen-ECNU
changed the title
ST_Covers give incorrect answer after mutating POLYGON to MULTIPOLYGON
ST_Covers gives incorrect answer after mutating POLYGON to MULTIPOLYGON
Jan 14, 2024
Considering the following statement:
The 2nd geometry covers the 1st one, because each point in the 1st geometry lies inside the 2nd one, according to the definition of ST_Covers:
However, PostGIS doesn't consider the ST_Covers relation, which seems to be a bug. After normalizing MULTIPOLYGON to POLYGON as g3, ST_Covers(g3, g1) gives the correct answer.
Here is a simple reproduction for libgeos:
geos version is the latest one in GitHub:
6f70b63
The text was updated successfully, but these errors were encountered: