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.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 637 GM Script Language
- 54 User Scripts
- 114 GPS Features
- 417 Projection Questions
- 826 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 913 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website