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