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

Improve Zonal Stats implementation #59596

Open
NyakudyaA opened this issue Nov 26, 2024 · 0 comments
Open

Improve Zonal Stats implementation #59596

NyakudyaA opened this issue Nov 26, 2024 · 0 comments

Comments

@NyakudyaA
Copy link
Contributor

Feature description

Currently, the Zonal stats algorithm aligns properly with PostGIS Raster, python package rasterstats values. I think QGIS would benefit from implementing some of the options available in rasterstats

Rasterization Strategy

Described at https://pythonhosted.org/rasterstats/manual.html#rasterization-strategy

Looking at the results I get from running zonal stats in QGIS and comparing this with the one found after using rasterstats, I believe QGIS implements the option all_touched=True

Maybe we could also provide this as an option in the GUI so that users can choose the rasterisation strategy

working-with-categorical-rasters

Described at https://pythonhosted.org/rasterstats/manual.html#working-with-categorical-rasters
I haven't tried this in QGIS to see how it works but if it doesn't do this, maybe we could implement it

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant