Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial predicate covers is incorrect for a LINE against a GEOMETRYCOLLECTION containing a POLYGON EMPTY #1011

Closed
dr-jts opened this issue Dec 7, 2023 · 1 comment
Labels

Comments

@dr-jts
Copy link
Contributor

dr-jts commented Dec 7, 2023

The covers spatial predicate gives an incorrect result for the case of a a GEOMETRYCOLLECTION containing a POLYGON EMPTY.

bin/geosop -a "LINESTRING(75 15,55 43)" -b "GEOMETRYCOLLECTION(POLYGON EMPTY,LINESTRING(75 15,55 43))" covers 
==> false

This is likely due to the dimension of the collection being determined as 2 and the predicate logic being short-circuited based on that.

Reported in https://trac.osgeo.org/postgis/ticket/5640

@dr-jts
Copy link
Contributor Author

dr-jts commented Oct 16, 2024

Fixed by d963c0f

@dr-jts dr-jts closed this as completed Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant