07-13-2016 01:40 PM - edited 07-14-2016 01:38 PM
The output of RasterOutput creates an IMG file in Map Chest, but (1) although I can see a map in the thumbnail, I can't preview the output and (2) no other application (typically used to view rasters) seems to be able to render IMG files.
Previewing the raster from Map Chest opens a window over Africa without displaying the raster as shown here. If I download the IMG and open it in IMAGINE, nothing displays. It's possible the image content of the file is empty, but then why does the thumbnail show a map?l
Can I output a TIFF? Here there's a library that converts IMG to MDF, but that may not improve the situation.
Is there any OSS that render IMG types?
Solved! Go to Solution.
07-15-2016 06:07 AM
Try opening the downloaded IMG file with Image Metadata in IMAGINE. Check the stats, or compute them if they aren't there. Check if a NODATA value is set, and look at the pixel data. Open the Raster Attribute Editor and see if there is a Contrast or Color column. That should help us determine why you aren't seeing anything when you open it in the IMAGINE 2D view.
07-16-2016 12:58 PM
Mae culpa. I double-clicked on the IMG files to open them in IMAGINE and ended up with a model when I expected an image. I found that using File > Open once in Imagine loaded and displayed the images and your advice helped familiarize me with the tools for investigating image properties.
Regarding your questions, it appears the stats were computed and there was pixel data based on the histogram. The Raster Attribute Editor did not have Contrast or Color columns.
I suspect these IMG aren't displaying in Smart M.Apps because one wasn't georeferenced and the other perhaps was using incorrect values in its georeferencing keys.
10-05-2016 01:41 PM - edited 10-05-2016 02:20 PM
Not sure what the etiquette is about old threads, so please excuse me.
As I commented last, I was able to view IMG files in ERDAS IMAGINE, but I still can't seem to get these to display on Smart M.App and the RasterOuput operator behaves different on the desktop vs online. On the desktop, it writes a tif, but online it writes an img, which I'd like to stay away from.
I experimented as much as I could. I tried displaying a number of geotif examples taken from OSGeo and none published. I tried publishing my geotifs using all permutations of publish settings (different WMS CRS, WMS only, WMTS only, WMS + WMTS) - nothing. if I compress these images to JPG then they display online, but lose some georeferencing information.
 Anyone else experience this?
 Is there a way to get the RasterOutput op to produce a TIF in Smart M.Apps