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 and LargestEmptyCircleCenter #310

Closed
wants to merge 56 commits into from

Conversation

pramsey
Copy link
Member

@pramsey pramsey commented Apr 22, 2020

extern GEOSGeometry GEOS_DLL *GEOSMaximumInscribedCircleRadius(const GEOSGeometry* g, double tolerance);

/* Constructs the Largest Empty Circle for a set of obstacle geometries, up to a
* specified tolerance. The obstacles are point and line geometries.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering about the lack of polygon support here... Is there a particular reason why it's skipped?

Copy link
Contributor

@dr-jts dr-jts Apr 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just that it will take a bit more time to implement (it requires additional checks to restrict candidate points lying in the polygons). Hoping to add it soon-ish.

Do you have a use case for that?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough!

I was mostly thinking in terms of finding the point furthest from a bunch of buildings

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's a good use case. Well, stay tuned... maybe can get this added soon.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it -- thanks!

@pramsey pramsey closed this Apr 28, 2020
@pramsey pramsey deleted the master-jts-530 branch April 28, 2020 20:48
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.

3 participants