Thanks Nagma, it still does not work. All I'm getting is a white window.
Your tiff file set consists of the files with extensions .tfw, .tif,
.aux.xml and .tif.ovr
my tiff file set consts of files with the extensions .prj, .tfw, .tif,
.README.html and .VERSION.txt
seems like slightly different formats, but both does not work.
For the pathToRaster I just point to the .tif file itself right?
do I need to do anything else like set the SpatialReferences?
I noticed that in your code, there seems to be one line that does nothing
"Raster myRaster = new Raster(pathToRaster)':
i.e. myRaster is not used.. am I missing something?
I can do either new RasterLayer(myRaster) OR new
RasterLayer(pathToRaster)
but it makes no difference either way.
any ideas?
rgds
PJ