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
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