Any script setting for forcing export of empty raster grid files?
OddBob
Global Mapper UserTrusted User
Hi,
I'm using Global Mapper to export a MIF/MID-file to GeoPNG - with the GeoPNG
split into 2 x 2 grids.
My problem then is the same as described in this old post:
http://www.globalmapperforum.com/forums/raster-data/4450-forced-export-transparent-tiles.html
If the grid contains no data, it's not exported. This results in problems later
in my process where I expect to find all four files, empty or not.
Is it now possible to force export of empty grids? I could not find such
setting in GM. If possible, what are the script commands for this?
My script would look like this:
IMPORT FILENAME="E:\INPUT.mif" TYPE=MAPINFO PROJ=EPSG:32633
AREA_STYLE_NAME="AREA_STYLE_OUTDOOR"
SET_BG_COLOR COLOR=RGB(255,255,255)
EXPORT_RASTER FILENAME="E:\OUTPUT.png" TYPE=PNG
PALETTE="E:\palette.pal" BG_TRANSPARENT=NO FILL_GAPS=YES
SPATIAL_RES_METERS=100.0 GEN_WORLD_FILE=YES GRID_TYPE_ROWS_COLS=2,2
GEN_PRJ_FILE=YES
I'm using Global Mapper to export a MIF/MID-file to GeoPNG - with the GeoPNG
split into 2 x 2 grids.
My problem then is the same as described in this old post:
http://www.globalmapperforum.com/forums/raster-data/4450-forced-export-transparent-tiles.html
If the grid contains no data, it's not exported. This results in problems later
in my process where I expect to find all four files, empty or not.
Is it now possible to force export of empty grids? I could not find such
setting in GM. If possible, what are the script commands for this?
My script would look like this:
IMPORT FILENAME="E:\INPUT.mif" TYPE=MAPINFO PROJ=EPSG:32633
AREA_STYLE_NAME="AREA_STYLE_OUTDOOR"
SET_BG_COLOR COLOR=RGB(255,255,255)
EXPORT_RASTER FILENAME="E:\OUTPUT.png" TYPE=PNG
PALETTE="E:\palette.pal" BG_TRANSPARENT=NO FILL_GAPS=YES
SPATIAL_RES_METERS=100.0 GEN_WORLD_FILE=YES GRID_TYPE_ROWS_COLS=2,2
GEN_PRJ_FILE=YES
Comments
-
The script is going to do the same thing with skipping files that have no data in them. What I would do is simply export once without gridding, then load that result back in and export into grids from that raster input which covers the entire file. In a script just use EXPORT_RASTER, then IMPORT to import that file back in, then EXPORT_RASTER again (this time with INC_VECTOR_DATA=NO) with the grid parameters as well.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Thank you,
I'll try this, or I change the gridding from 2x2 to 2x1. Hopefully the files will not be too large for the further processing.
I would suggest that you put the possibility to "export empty grid files" in GM.
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