Export_raster

moonbabymoonbaby Global Mapper UserPosts: 12
edited June 2008 in Raster Data
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!

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited June 2008
    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
  • moonbabymoonbaby Global Mapper User Posts: 12
    edited June 2008
    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
  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited June 2008
    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
Sign In or Register to comment.