Combinig PIXEL_SIZE and GRID_TYPE_CELL_SIZE in EXPORT_RASTER
dmitry
Global Mapper User
I'm trying to produce a set of tiles 0.5 by 0.5 degrees each and export them to corresponding 256 by 256 pixels PNG files using EXPORT_RASTER command in my script.
I tried to specify PIXEL_SIZE="256,256" GRID_TYPE_CELL_SIZE="0.5,0.5" arguments to EXPORT_RASTER command, but it seems like the resulting PNG files contain correct data, but their size is far from being 256x256 pixels.
Does combination of PIXEL_SIZE and GRID_TYPE_CELL_SIZE arguments of
EXPORT_RASTER command work? Are those arguments mutually exclusive?
I tried to specify PIXEL_SIZE="256,256" GRID_TYPE_CELL_SIZE="0.5,0.5" arguments to EXPORT_RASTER command, but it seems like the resulting PNG files contain correct data, but their size is far from being 256x256 pixels.
Does combination of PIXEL_SIZE and GRID_TYPE_CELL_SIZE arguments of
EXPORT_RASTER command work? Are those arguments mutually exclusive?
Comments
-
Yes, those are mutually exclusive. Try using SPATIAL_RES=0.001953125 (that is 0.5 / 256) and you should get the cells to be 256x256 in size through the combination of cell size and spatial resolution.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Thanks a lot. That did the trick.
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