Global Mapper Pro Coming Soon

Combinig PIXEL_SIZE and GRID_TYPE_CELL_SIZE in EXPORT_RASTER

dmitrydmitry Global Mapper UserPosts: 2
edited April 2011 in Technical Support
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?

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited April 2011
    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
  • dmitrydmitry Global Mapper User Posts: 2
    edited April 2011
    Thanks a lot. That did the trick.
Sign In or Register to comment.