Export warning on some rasters, but not all.
I have written a script that imports a gmp file with several layers all containing polygons/areas, representing different islands.
The script then loops through a folder containing raster files (*.tif) and imports them. Each raster represents a town. The aim is to crop the water around the islands.
The script actually works perfectly with some raster and not with others. When it doesn't work, I get this warning message: "WARNING: No data found to export for EXPORT_RASTER command within specified bounds." The raster then isn't exported to the assigned folder.
There are both working and non-working rasters (towns) within the same polygon (island). The files are all in the same projection and datum. The metadata of the working and non-working rasters are identical. (I created both rasters the same way.)
I tried cropping the non-working raster manually in Global Mapper without any problems.
Any help or thoughts is much appreciated.
Ps. The script looks like this:
/******* Script Starts *********
/*********** Loop Starts **********