Global Mapper 16
Results 1 to 3 of 3
  1. #1
    Global Mapper User
    Join Date
    Dec 2008

    Default Transparent PNG in KMZ export


    I'm trying to use GM10 to export KMZ / KML, via a script. The raster format is to be PNG. All is well, except that I need colour 0 to be transparent. It looks to me like the Export KMZ dialog does not allow for a transparent color to be set.

    Unfortunately the BG_TRANSPARENT keyword does not seem to do anything for PNG within a KMZ.

    I can use Tools > Control Center then select an overlay, then Options > Transparency etc. However, the gotcha is that I cannot do that via a script, even with a Sendkeys approach, because it appears to be impossible to select the overlay within the Control Center, without using a mouse. Obviously, if a mouse is needed, the automated scripting won't work.

    I don't think I can use the batch convert, because I cannot set the output projection that way (it has to be geographic / WGS-84).

    Any ideas on how I can get my KMZ exported, in an automated way, making color 0 transparent?


  2. #2
    Join Date
    Jun 2007


    You enable transparency for each layer that you have loaded, rather than on your export. In a script your IMPORT commands is where you specify the transparency.

    You could also use batch conversion. Any export to KML/KMZ is automatically reprojected to Geographic/WGS84, you don't have to do anything to make sure that the export projection is correct.

    Let me know if I can be of further assistance.


    Global Mapper Support

  3. #3
    Global Mapper User
    Join Date
    Dec 2008


    Thanks for the info Mike. I have used TRANSPARENT_COLOR="RGB(0,0,0)" with the IMPORT command.

    Thanks also for the tip re the batch output being Geo/WGS84.

    And for the prompt reply



Tags for this Thread



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.2.1
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.1
Copyright 2008-2012
All times are GMT. The time now is 02:14 AM.
vBulletin 4.0 skin by CompleteVB