ISaveAs produces FDO_E_FEATURE_EMPTY_GEOMETRY when writing to JPG

Discussion created by ssstanton on Jul 12, 2011
Latest reply on Aug 18, 2011 by EinBerliner
I'm creating some raster tiles using code like that in to accept the output file type - JPG or PNG).

At first, everything seemed to be working great. However, one of my datasets seems to have a problem writing to JPG. The call to ISaveAs.SaveAs comes back with the error: esriDataSourcesRaster.GdalDriver - Failed to copy raster dataset - COM Errorcode -2147217383 [FDO_E_FEATURE_EMPTY_GEOMETRY].

However, it works if I save to PNG. It doesn't seem to relate to the pixel type (all the files I'm working with are PT_UCHAR). Any ideas?