ZonalStats does an internal computation to associate a query envelope to a provided ROI. This will used for containment checks afterwards.
The computation should use floor and ceil on Rectangle2D double bounds since the current approach based on int Rectangle bounds is inaccurate and it results into not including some results when dealing with tiny geometries.
ZonalStats does an internal computation to associate a query envelope to a provided ROI. This will used for containment checks afterwards. The computation should use floor and ceil on Rectangle2D double bounds since the current approach based on int Rectangle bounds is inaccurate and it results into not including some results when dealing with tiny geometries.