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

Add geometry point_on_surface method #205

Merged

Conversation

andriyreznik
Copy link
Contributor

@andriyreznik andriyreznik commented Jul 7, 2019

Summary

This PR implements the Geometry#point_on_surface method using GEOS CAPI. There is an implementation of MultiPolygon#point_on_surface already in the master branch. So, this PR just move existed logic to base feature.

Other Information

Other features like point and lines, not only polygons should have point_on_surface method. It would be more consistent. In PostGIS ST_PointOnSurface works fine with all feature types.

@ynelin
Copy link
Contributor

ynelin commented Aug 8, 2019

@teeparham maybe you can merge this or @andrejreznik need to improve something?

@teeparham teeparham merged commit 6e58e81 into rgeo:master Aug 8, 2019
@teeparham
Copy link
Member

Thanks!

It would be nice to add/fix the tests with floating point issues, but that can be done in a future PR.

@teeparham
Copy link
Member

Released in 2.1.0.

@andriyreznik andriyreznik deleted the feature/missing-point-on-surface-methods branch August 8, 2019 22:03
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 this pull request may close these issues.

None yet

3 participants