EXPORT_RASTER PIXEL_SIZE parameter GM15 vs GM16

I have a programmatically generated script that was developed with Global Mapper 15.2 which does not execute properly on Global Mapper 16. The script reads a set of GeoTIFF files from a folder and then exports a set of JPG images using a cropping file. The cropping file is a grid of extents with each cell representing a 512x512 JPG image. The PIXEL_SIZE parameter is calculated by counting the number of columns and number of rows in the grid and multiplying them by 512. With Global Mapper 16, the script produces images with pixel dimensions that are slightly off but works with 15.2.

DIR_LOOP_START DIRECTORY="D:/AARS_Hawaii2/input/LOWSCALE" FILENAME_MASKS="*.TIF" RECURSE_DIR=NO
     IMPORT FILENAME = "%FNAME_W_DIR%" TYPE=AUTO
DIR_LOOP_END

EXPORT_RASTER FILENAME="D:/AARS_Hawaii2/LOWSCALE/.jpg" SAMPLING_METHOD=BICUBIC TYPE=JPEG PALETTE=OPTIMIZED \
  PIXEL_SIZE="62464x45056" DPI=600 POLYGON_CROP_FILE="D:/AARS_Hawaii2/LOWSCALE.shp" \
  POLYGON_CROP_USE_EACH=YES POLYGON_CROP_FOLDER_ATTR="path" POLYGON_CROP_NAME_ATTR="filename"

Is there another way to write the script?
Sign In or Register to comment.