[GRASS-dev] Rendering from command line does not respect size

Markus Neteler neteler at osgeo.org
Sun May 3 13:12:20 PDT 2015


On Sun, May 3, 2015 at 12:11 PM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
>
> 2015-05-03 7:22 GMT+02:00 Markus Neteler <neteler at osgeo.org>:
>> GRASS 7.0.1svn (nc_spm_08_grass7):~ > export GRASS_RENDER_HEIGHT=1350
>> GRASS 7.0.1svn (nc_spm_08_grass7):~ > export GRASS_RENDER_WIDTH=1500
>> GRASS 7.0.1svn (nc_spm_08_grass7):~ > d.mon start=png
>> ERROR: PNG: input file is not RGBA
>
> input image has been apparently created by cairo. Try to delete file
> before starting png display driver. Martin

Good catch! I though I had deleted it...

GRASS 7.0.1svn (nc_spm_08_grass7):~ > export GRASS_RENDER_HEIGHT=1350
GRASS 7.0.1svn (nc_spm_08_grass7):~ > export GRASS_RENDER_WIDTH=1500
GRASS 7.0.1svn (nc_spm_08_grass7):~ > rm -f map.png
GRASS 7.0.1svn (nc_spm_08_grass7):~ > d.mon start=png
Output file: /home/neteler/map.png
GRASS 7.0.1svn (nc_spm_08_grass7):~ > d.rast aspect
GRASS 7.0.1svn (nc_spm_08_grass7):~ > d.mon stop=png
GRASS 7.0.1svn (nc_spm_08_grass7):~ > file map.png
map.png: PNG image data, 640 x 480, 8-bit/color RGBA, non-interlaced

### now testing latest trunk changes:

...
GRASS 7.1.svn (nc_spm_08_grass7):~ > file map.png
map.png: PNG image data, 1500 x 1350, 8-bit/color RGBA, non-interlaced

... the latest change helps: seems to work now.

thanks
Markus


More information about the grass-dev mailing list