Global Mapper Pro

Any script setting for forcing export of empty raster grid files?

OddBob
OddBob Global Mapper UserTrusted User
edited June 2012 in Technical Support
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

Comments

  • global_mapper
    global_mapper Administrator
    edited June 2012
    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
  • OddBob
    OddBob Global Mapper User Trusted User
    edited June 2012
    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.
Sign In or Register to comment.