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

Functionality to get bounding box of geometry #148

Closed
zerefwayne opened this issue Nov 4, 2020 · 1 comment · Fixed by #149
Closed

Functionality to get bounding box of geometry #148

zerefwayne opened this issue Nov 4, 2020 · 1 comment · Fixed by #149

Comments

@zerefwayne
Copy link
Contributor

zerefwayne commented Nov 4, 2020

> AG.envelope(geom)

GDAL.OGREnvelope(12.445608139038143, 12.458451271057186, 41.90011215209961, 41.90755081176758)

Instead of the OGREnvelope, it would be beneficial if I can get a POLYGON type bounding box from these coordinates.

Suggestions:

AG.boundbox2d(geom) which will give me a POLYGON shape

I would like to work on this feature.

@yeesian
Copy link
Owner

yeesian commented Nov 4, 2020

Yes, we haven't been very good about keeping this package hermetic and free of GDAL types, so this is a welcome contribution :)

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 a pull request may close this issue.

2 participants