Utils.GridStatisticsToShapefile is behaving unexpectedly
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.
Just committed optional parameter 'useCenterWithinMethod' to Utils.GridStatisticsToShapefile() to let the developer decide which method is uses: CenterWithin or Intersection.
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).