Simple GeoTiff Export

BillBBillB Global Mapper UserPosts: 83Trusted User
edited July 2012 in User Scripts
Hi folks, I have been using GM for about 4 years and never got around to scripting, mainly due ot the lack of examples in the helpfile. Anyhow, here's a simple one which saves me having to complete the GeoTiff Export dilaog when testing different layers etc. The resulting TIF drops straight into CorelDraw, Serif Drawplus etc at 1:100,000 scale. Obviously you will need to set max/min coordinates to suit. for an A3 landscape sheet you need about 32(x) by 30(y) kilometres, subject to how your A3 sheet is set up with title blocks etc.

Each line is self-explanatory. Hope this helps someone. :)
GLOBAL_MAPPER_SCRIPT VERSION=1.00
EXPORT_RASTER \
FILENAME="OUTPUT.TIF" \
TYPE=GEOTIFF \
COMPRESSION=LZW \
INC_VECTOR_DATA=YES \
SAVE_SCALE_AND_LEGEND=YES \
EXPORT_SCALE=100000 \
DPI=300 \
//minimumX,minimumY,maximumX,maximumY
GLOBAL_BOUNDS=minimumX,minimumY,maximumX,maximumY
Sign In or Register to comment.