ArcGIS 10: Writing statistics to a raster

Discussion created by prentow on Oct 14, 2010

We need to write statistics to a raster using ArcObjects for C++.

In ArcGIS 9.3 we used the get_Statistics method from the IRasterBand interface. Then we would write the statistics using put_Min, put_Max etc. from the IRasterStatistics interface.
This approach worked fine in ArcGIS 9.3

However, when using ArcGIS 10.0 this approach fails. When the raster is loaded into ArcMap, no statistics are present.

Any ideas/input on how to make this work in ArcGIS 10.0 would be greatly appreciated!