[GRASS-windows] grass_width, grass_heigt and grass_pngfile

Markus Neteler neteler at osgeo.org
Sat Mar 3 00:19:44 EST 2012


Hi Willie,

On Fri, Mar 2, 2012 at 9:27 PM, Liu, Huili <HLiu at ap.org> wrote:
>
> I am trying to create a python script to get an image file as below:
>
...
>
> But I got the default image file name,  map.png with GRASS_WIDTH=640 and
> GRASS_HEIGHT=480.
>
> Is there any way for me to setup  width and height and my image file name in
> grass.run_command?

You need to set these two environment variables

    GRASS_WIDTH=xxx
    the width of the image map (default is 640).

    GRASS_HEIGHT=yyy
    the height of the image map (default is 480).

See
http://grass.osgeo.org/grass64/manuals/html64_user/pngdriver.html

Hope this helps,
Markus


More information about the grass-windows mailing list