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

GEOSClipByRect: Fix case with POINT EMPTY, add more tests #913

Merged
merged 3 commits into from
May 30, 2023

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented May 21, 2023

This seems to be an old bug, where GEOSClipByRect("POINT EMPTY", ...) raises:

GEOSException: UnsupportedOperationException: getX called on empty Point"

Other empty combinations work fine (they only return GEOMETRYCOLLECTION EMPTY), so add each empty combination to the tests.

@mwtoews mwtoews force-pushed the fix-clip-by-rect-with-point-empty branch from f18dbbd to d786adb Compare May 22, 2023 08:57
@mwtoews mwtoews force-pushed the fix-clip-by-rect-with-point-empty branch from d786adb to 7ffc92a Compare May 22, 2023 09:04
@mwtoews mwtoews merged commit cad9c6f into libgeos:main May 30, 2023
27 checks passed
@mwtoews mwtoews deleted the fix-clip-by-rect-with-point-empty branch May 30, 2023 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant