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.
Howdy, Stranger!
Categories
- 12.2K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 580 GM Script Language
- 42 User Scripts
- 111 GPS Features
- 388 Projection Questions
- 788 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 520 Other Discussion
- 125 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 99 Global Mapper Forum Website