[GRASS-user] d.out.file - Shell-script use ?
César Augusto Ramírez Franco
caesarivs at gmail.com
Mon Nov 10 15:55:37 PST 2014
What I use on scripts is the PNG monitor setting the GRASS_PNGFILE,
GRASS_HEIGHT and GRASS_WIDTH before starting the monitor.
Take a look at the PNG Driver manual pages for more variables:
http://grass.osgeo.org/grass64/manuals/pngdriver.html
El lun, 10 de noviembre de 2014 17:42, "Peter Löwe" <peter.loewe at gmx.de>
escribió:
> Hi all,
>
> I'm trying call up d.out.file from within an add-on Shell-script for GRASS
> 6.>=4, but keep getting the following error:
> ERROR: No such monitor as <GRASS_MONITOR>
> d.out.file output=test20141110 format=geotiff resolution=1 size=1440,720
> ERROR: You must select a display monitor.
>
> Let's assume that a GRASS monitor has been _started_ and _selected_ (x0,
> PNG, or similar) in the current GRASS session and some rasters and vectors
> have been drawn on it. Then, the script is invoked which needs to write out
> the content of the currently active monitor.
>
> Up till now neither a simple "export `g.gisenv`" or an explicit
> re-selecting the monitor via "d.mon select=$THECURRENTMONITOR" within the
> script improved the situation.
>
> Hints and suggestions would be greatly appreciated.
>
> Peter
> <peter.loewe at gmx.de>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20141110/16e787cb/attachment.html>
More information about the grass-user
mailing list