I am encountering a problem with the OCX's Image class when using grid files that start out in .img format and are converted to geotiff. The grid file is displayable when opened as a Geotiff image. Further, it can be opened as a grid file and an Image object can be created successfully using GridToImage(). The Image object can even be added to the display using AddLayer(). However, I've encountered two negative behaviours: sometimes the image cannot be saved using Image.Save(), while sometimes it saves an image but cannot open it (it gets corrupted) after saving.
I also noticed that when the image is added using AddLayer(), the image also cannot be saved from the layer reference in the MapWinGIS control.
Grids files that start out as ArcInfo grids converted to Geotiff don't seem to exhibit this problem. It's very odd. Any similar problems noted?
Comments: ** Comment from web user: pmeems **
I also noticed that when the image is added using AddLayer(), the image also cannot be saved from the layer reference in the MapWinGIS control.
Grids files that start out as ArcInfo grids converted to Geotiff don't seem to exhibit this problem. It's very odd. Any similar problems noted?
Comments: ** Comment from web user: pmeems **
Could you add some code to reproduce and provide the image file that is causing this problem?
Thanks,
Paul