-
Notifications
You must be signed in to change notification settings - Fork 43
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
ENH: bounds function #62
Comments
Postgis seems to have something related: The "spatial" equivalent is actually the |
The GEOS C-API exposes Xmin, Xmax, Ymin, Ymax functions since version 3.7. That is probably what we need. I do wonder if performing the |
As discussed in #69, we would also like a total_bounds function |
@caspervdw this appears resolved as of #69, #107 |
Indeed! |
Shapely has a
bounds
attribute, implemented at:https://github.com/Toblerity/Shapely/blob/803b21bb87f3f76ce25bec4e015b46038c0df1f4/shapely/coords.py#L159-L186
I personally find this a useful operation that I use regularly. You can already get the coordinates per geometry and calculate the min/max of this, but doing that on an array of geometries still requires some manual looping.
Something to add to pygeos?
The text was updated successfully, but these errors were encountered: