I am trying to do this now. I have a done the following:
Code:
GLOBAL_MAPPER_SCRIPT VERSION="1.00" FILENAME="T:\WORKSPACE.GMW"
UNLOAD_ALL
DEFINE_PROJ PROJ_NAME="UTM_ZONE32_WGS84"
Projection UTM
Datum WGS84
Zunits NO
Units METERS
Zone 32
Xshift 0.000000
Yshift 0.000000
Parameters
END_DEFINE_PROJ
SET_BG_COLOR COLOR=RGB(100,100,100)
IMPORT FILENAME="T:\testfile.tif" \
TYPE="GEOTIFF" LABEL_FIELD="" ANTI_ALIAS="NO" \
AUTO_CONTRAST="NO" CONTRAST_SHARED="YES" \
CONTRAST_MODE="NONE"
EXPORT_RASTER FILENAME="T:\testfile_export.tif" \
TYPE=GEOTIFF LAYER_BOUNDS="T:\testfile.tif" \
POLYGON_CROP_USE_ALL="T:\Areas.shp" \
However it does not crop at the Areas within the file Areas.shp.
I am trying to do something similar to: File - Batch convert/reproject and selecting "Crop to Selected Areas" and "Maintain Full Size When Cropped"
Bookmarks