GM scripting: reproject/Export raster sets two no_data/background values
In my script, I set:
SET_BG_COLOR COLOR=(255,255,255)
I reproject my input LCC GeoTiff (that has a background value of 255) to Google's Web mercator.
I use export raster to save the results to a new file.
Then I open the exported image in a 3rd party software and can see two different background values. The original, plus a new outer ring of zeros (0). How do I export the data so that there is only one background value? Also, I can't use the "BG_TRANSPARENT=YES" as that will create an alpha channel--besides the output still has two different values for background (0 and 255) which other basic 3rd party image viewers do not use.
Is there a way around this?
Tagged:
Categories
- 12.9K All Categories
- 5.7K Features Discussion
- 346 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 645 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 419 Projection Questions
- 829 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 180 Announcement and News
- 926 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 575 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 242 How I use Global Mapper
- 108 Global Mapper Forum Website