I have a grid and a shapefile. When I run GridStatisticsToShapefile I get this result:
The labels are the number of pixels which is used for the statistics.
And the edge of the grid more pixels are used than expected.
It looks like every pixel that is intersecting the shape is used, I expect only the pixels which have their center within the shape are used.
After a long day of debugging I seem to have found a solution:
I've asked for a more permanent solution. My suggestion is to add a parameter to set the method (CenterWithin or Intersection).
Just committed optional parameter 'useCenterWithinMethod' to Utils.GridStatisticsToShapefile() to let the developer decide which method is uses: CenterWithin or Intersection.