It looks like sdk has issue/missing of one feature on that writing raster functionality.
I change by setting fix value on the pixel block. in Plane for loop, (I did adjust getpixeldata , ref true/false, pixel value type based on source raster data type like , float, byte)
After I masked out the full raster, the result tif remain show me with old statistic. (Mask out full raster)
I have to call calculate statistic gptask to recalculate the statisic.
Is that possible for sdk to recalculate the statistic automatically upon saving the pixel block.
Or did I miss some method call for updating statistic? Wolfgang Kaiser