AnsweredAssumed Answered

Raster pixel data writing and updating its statistic

Question asked by taungesriaustralia-com-au-esridist Employee on Aug 16, 2020

Hi Guys,


It looks like sdk has issue/missing of one feature on that writing raster functionality.

For example:… 


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