grid type rows cols bad calculation
kalosh74
Global Mapper UserTrusted User
in Raster Data
Dear all,
I have to divide 8192x8192 png files in 256x256 files using specific name for tiles. So I have to divide them in 32 rows x 32 columns.
I use this code script for this:
EXPORT_RASTER FILENAME="name.png" TYPE="PNG" GRID_TYPE_ROWS_COLS="32,32" GRID_NAMING="SEPARATE_COLS_FIRST" GRID_NAMING_COLS="NUM,number1,X,1" GRID_NAMING_ROWS="NUM,number2,Y,1"
I use specific value in "number1" and "number2" depending on what png I use.
Te result is 1024 tiles with 257x257 size instead of 256x256.
I have tried the code "GRID_KEEP_CELL_SIZE=NO" or "GRID_KEEP_CELL_SIZE=YES" with no success.
Only as a commentary, in Global Mapper versions 15 and 16 it works, I obtain 256x256 files.
Regards,
Carlos.
I have to divide 8192x8192 png files in 256x256 files using specific name for tiles. So I have to divide them in 32 rows x 32 columns.
I use this code script for this:
EXPORT_RASTER FILENAME="name.png" TYPE="PNG" GRID_TYPE_ROWS_COLS="32,32" GRID_NAMING="SEPARATE_COLS_FIRST" GRID_NAMING_COLS="NUM,number1,X,1" GRID_NAMING_ROWS="NUM,number2,Y,1"
I use specific value in "number1" and "number2" depending on what png I use.
Te result is 1024 tiles with 257x257 size instead of 256x256.
I have tried the code "GRID_KEEP_CELL_SIZE=NO" or "GRID_KEEP_CELL_SIZE=YES" with no success.
Only as a commentary, in Global Mapper versions 15 and 16 it works, I obtain 256x256 files.
Regards,
Carlos.
Answers
-
Hello Carlos,
First, please try your workflow in the latest version of Global Mapper 17.
Another option is to try the GRID_TYPE_PIXEL_SIZE="256,256" parameter on your EXPORT_RASTER command.
If the problem persists, please send an e-mail containing a detailed description of your workflow (your script) and results, along with sample data that will reproduce the problem, to geohelp@bluemarblegeo.com. The support team will be able to provide further assistance.
Cheers,
Bob
Categories
- 13K All Categories
- 5.8K Features Discussion
- 351 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 423 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 183 Announcement and News
- 944 Bug Report
- 565 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 583 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 246 How I use Global Mapper
- 111 Global Mapper Forum Website

