Quantcast
Viewing all articles
Browse latest Browse all 2341

Commented Unassigned: Mapwingis active x 4.9 GridToImage() [25742]

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: sleschinski **

Here is one more update: https://mapwingis.codeplex.com/SourceControl/changeset/75316

I added more error message:
- when .img file is opened directly without proxy but then Image.Save is called with extension / format other than .img / HFA, the dataset will still be saved as HFA, and than there can be problems with opening the resulting image in editors;
- when non-GDAL saving options are used, the data is expected to be in-memory; if that's not the case the function could just fail silently;

Remember to set GlobalSettings.ApplicationCallback when testing it.

I guess I'm done with this issue for now.


Viewing all articles
Browse latest Browse all 2341

Trending Articles