Grid Polygons

I am working on a script to batch clip 4-band raster imagery based on a polygon. I can not find a command to grid the polygons so it will clip everything outside of the polygon, so I was wondering what command I would use and where to put it in the script. I am using v11. Here is my current script:
GLOBAL_MAPPER_SCRIPT VERSION=1.00
DIR_LOOP_START DIRECTORY="[URL="file://\\PH88NS80G1\V3$\PH\Projects\71876_YellowstoneRiver_2011\PRS\Ortho\OVSheets\ready_for_QC\gimped\craig_test"]folder_path[/URL]" FILENAME_MASKS="*.TIF" RECURSE_DIR=NO
IMPORT FILENAME="%FNAME_W_DIR%" TYPE="GEOTIFF" LOAD_FLAGS="0~0~0~4~0~1"
PROJ_FILENAME="[URL="file://\\PH88NS80G1\V3$\PH\Projects\71876_YellowstoneRiver_2011\PRS\Ortho\OVSheets\ready_for_QC\gimped\craig_test\Montana.prj"]projectio[/URL]n"
EXPORT_RASTER FILENAME="%DIR%%FNAME_WO_EXT%_CLIP.TIF" TYPE="GEOTIFF"
SPATIAL_RES="1.0000000000000,1.00000000000000" PALETTE=MULTIBAND NUM_BANDS=4 FORCE_SQUARE_PIXELS=YES GEN_WORLD_FILE=YES
POLYGON_CROP_FILE="[URL="file://\\PH88NS80G1\V3$\PH\Projects\71876_YellowstoneRiver_2011\PRS\Ortho\OVSheets\ready_for_QC\gimped\craig_test\boundary.shp"UNLOAD_ALLDIR_LOOP_END"]boundary.shp"
UNLOAD_ALL
DIR_LOOP_END
[/URL]
GLOBAL_MAPPER_SCRIPT VERSION=1.00
DIR_LOOP_START DIRECTORY="[URL="file://\\PH88NS80G1\V3$\PH\Projects\71876_YellowstoneRiver_2011\PRS\Ortho\OVSheets\ready_for_QC\gimped\craig_test"]folder_path[/URL]" FILENAME_MASKS="*.TIF" RECURSE_DIR=NO
IMPORT FILENAME="%FNAME_W_DIR%" TYPE="GEOTIFF" LOAD_FLAGS="0~0~0~4~0~1"
PROJ_FILENAME="[URL="file://\\PH88NS80G1\V3$\PH\Projects\71876_YellowstoneRiver_2011\PRS\Ortho\OVSheets\ready_for_QC\gimped\craig_test\Montana.prj"]projectio[/URL]n"
EXPORT_RASTER FILENAME="%DIR%%FNAME_WO_EXT%_CLIP.TIF" TYPE="GEOTIFF"
SPATIAL_RES="1.0000000000000,1.00000000000000" PALETTE=MULTIBAND NUM_BANDS=4 FORCE_SQUARE_PIXELS=YES GEN_WORLD_FILE=YES
POLYGON_CROP_FILE="[URL="file://\\PH88NS80G1\V3$\PH\Projects\71876_YellowstoneRiver_2011\PRS\Ortho\OVSheets\ready_for_QC\gimped\craig_test\boundary.shp"UNLOAD_ALLDIR_LOOP_END"]boundary.shp"
UNLOAD_ALL
DIR_LOOP_END
[/URL]
Comments
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
GLOBAL_MAPPER_SCRIPT VERSION=1.00
SET_BG_COLOR COLOR=RGB(255,255,255)
DIR_LOOP_START DIRECTORY="C:\Users\lundgren\Desktop\CLIP" FILENAME_MASKS="*.TIF" RECURSE_DIR=NO
LOAD_PROJECTION FILENAME="C:\Users\lundgren\Desktop\CLIP\Montana.prj"
IMPORT FILENAME="%FNAME_W_DIR%" TYPE="GEOTIFF" LOAD_FLAGS="0~0~0~4~0~1"
EXPORT_RASTER FILENAME="%DIR%%FNAME_WO_EXT%_CLIP.TIF" TYPE="GEOTIFF" BG_TRANSPARENT=YES SPATIAL_RES="1.0000000000000,1.00000000000000" PALETTE=MULTIBAND NUM_BANDS=4 FORCE_SQUARE_PIXELS=YES GEN_WORLD_FILE=YES POLYGON_CROP_FILE="C:\Users\lundgren\Desktop\CLIP\clip_bound.shp"
UNLOAD_ALL
DIR_LOOP_END
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com