POLYGON_CROP_FILE not the same result as Crop to Selected Area Feature(s)

veddycent
veddycent Global Mapper User
Hi all,

Hopefully this has an easy solution :)

I'm running this script to export PNG's and crop to square areas:
EXPORT_RASTER FILENAME="%SAVE_IMAGE_DIR%" TYPE="PNG" POLYGON_CROP_FILE="%LAYER_FNAME_W_DIR%" BG_TRANSPARENT="NO" FORCE_SQUARE_PIXELS="YES" FILL_GAPS="YES"

The raster images are smaller than the crop areas so the exported images when using the script are not the same size as the crop area.
However
Manually exporting the raster and ticking Crop to Selected Area Feature(s) makes the exported image the same size as the crop area.

Is there a reason why the script doesn't do this? Is there a parameter in the script I have missed?

See image below which explains the two different outcomes

Any help/guidance would be much appreciated!

Answers