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

MaximumInscribedCircle goes into long loop and fails #875

Closed
robe2 opened this issue Apr 21, 2023 · 0 comments · Fixed by #883
Closed

MaximumInscribedCircle goes into long loop and fails #875

robe2 opened this issue Apr 21, 2023 · 0 comments · Fixed by #883
Labels

Comments

@robe2
Copy link
Member

robe2 commented Apr 21, 2023

As noted in - https://lists.osgeo.org/pipermail/postgis-devel/2023-April/029923.html

MaximumInscribedCircle cries in tears when faced with this geometry

SELECT ST_MaximumInscribedCircle( 'POLYGON ((59.3 100.00000000000001, 99.7 100.00000000000001, 99.7 100, 59.3 100, 59.3 100.00000000000001))') ;

This has been tested on GEOS 3.9, GEOS 3.10.2, GEOS 3.11.2, GEOS 3.12 (main branch).

FWIW my tests on 3.11.2 and GEOS 3.12, the query eventually completed in 3 minutes (this is testing under CentOS 8 and MingW64)
but with an error:

ERROR: Error calculating GEOSMaximumInscribedCircle.

Others with more powerful systems did not fair so well. Not sure if it was postgis that realized something was wrong or GEOS.

@robe2 robe2 added the Bug label Apr 21, 2023
@dr-jts dr-jts changed the title MaximumInscribedCircle goes into long loop before giving up and erroring MaximumInscribedCircle goes into long loop and fails Apr 26, 2023
pramsey added a commit that referenced this issue Apr 26, 2023
… long-running MaximumInscribedCircle operation, GH-875
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant