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

Allow for user provided vector field to be used as the unique key in zonal_statistics #371

Open
dcdenu4 opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dcdenu4
Copy link
Member

dcdenu4 commented Feb 15, 2024

Currently zonal_statistics uses the vector FID for the returned dictionary keys. From my understanding the FID is mostly an internal vector attribute that a lot of users might not even be aware of. It would be a nice quality of life improvement to allow the user to decide what that key should be.

In some workflows of using zonal_statistics, a user might have a geopandas dataframe loaded with the vector being used with zonal_statistics. When zonal_statistics returns the user has to then correlate the FID keys to the human unique key field of that vector. From my brief exploration, geopandas does not have knowledge of a vectors FID.

This could relate to #277

@dcdenu4 dcdenu4 added the enhancement New feature or request label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant