Timeline for QGIS Zonal statistics and Python Rasterstats yield different results
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 27, 2022 at 4:39 | comment | added | ShyGiantRat | I'm now having exactly the same problem. I'm also using Python(rasterstats) and QGIS together. I think it depends on how it handles pixels that are on the border of the polygons. This link might be helpful for understanding how QGIS zonal statistics works. gis.stackexchange.com/questions/276794/… | |
Sep 10, 2021 at 11:56 | comment | added | eigenvector | Yes: without all_touched=True many numbers are missing (probably those polygons that do not fully encompass a raster pixel?) and the numbers that are not missing are the same as in QGIS Zonal statistics. Does that suggest that QGIS Zonal statistics uses "all_touched" true whenever the polygon is smaller that the raster pixel and leaves the option away when it is bigger? | |
Sep 10, 2021 at 11:49 | comment | added | Bera |
Have you tried without all_touched=True
|
|
Sep 10, 2021 at 11:44 | history | asked | eigenvector | CC BY-SA 4.0 |