Export_raster
moonbaby
Global Mapper User
I'm trying to export a satellite TIF image using the "LAT_LON_BOUNDS" command but i am not getting it to work. Do i have this setup right?
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL
IMPORT FILENAME="C:\Documents and Settings\Sat\GoesEast04I2_latest.tif"
TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=NO TEXTURE_MAP=NO
LOAD_PROJECTION FILENAME="C:\Documents and Settings\Sat\sat.prj"
EXPORT_RASTER FILENAME="C:\Documents and Settings\Sat\sat.png" LAT_LON_BOUNDS= -104.3,37.7,-86.0,49.1 TYPE=PNG GEN_WORLD_FILE=YES GEN_PRJ_FILE=YES
Also, can we set the width & height of the exported png image? i would like 640x480
Thanks!
GLOBAL_MAPPER_SCRIPT VERSION=1.00
UNLOAD_ALL
IMPORT FILENAME="C:\Documents and Settings\Sat\GoesEast04I2_latest.tif"
TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=NO TEXTURE_MAP=NO
LOAD_PROJECTION FILENAME="C:\Documents and Settings\Sat\sat.prj"
EXPORT_RASTER FILENAME="C:\Documents and Settings\Sat\sat.png" LAT_LON_BOUNDS= -104.3,37.7,-86.0,49.1 TYPE=PNG GEN_WORLD_FILE=YES GEN_PRJ_FILE=YES
Also, can we set the width & height of the exported png image? i would like 640x480
Thanks!
Comments
-
It looks like you have a space after the equal sign after your LAT_LON_BOUNDS parameter. Other than that it looks fine.
You can use PIXEL_SIZE=640x480 to specify the pixel size for the export.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
global_mapper wrote: »It looks like you have a space after the equal sign after your LAT_LON_BOUNDS parameter. Other than that it looks fine.
You can use PIXEL_SIZE=640x480 to specify the pixel size for the export.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Thanks Mike, got it working now. One more question, on the "TRANSPARENT_COLOR" option, is there also the option to set "Simular Colors Transparent"?
Thanks -
Yes, add a TRANSPARENT_COLOR_DIST parameter to specify how far (in 8-bit space) that a color band value has to be to the transparent color to be treated as transparent. The default for "similar colors transparent" is TRANSPARENT_COLOR_DIST=16.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website