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

Vaclav Petras wenzeslaus at gmail.com
Sun May 3 17:47:48 PDT 2015


On Sun, May 3, 2015 at 4:12 PM, Markus Neteler <neteler at osgeo.org> wrote:

> ### 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 Martin, with r65183 most of the things work. With environmental
variables both PNG and Cairo drivers worked, i.e. the size was appropriate.
Options width and height worked for Cairo but not for PNG:

ls

(nothing)

d.mon png width=1500 height=1350
d.rast elevation

ERROR: PNG: input file has incorrect dimensions: expected: 1500x1350 got:
       640x480

file map.png

map.png: PNG image data, 640 x 480, 8-bit/color RGBA, non-interlaced

And the file is empty (white).

I also tested the default settings for Cairo and it (correctly) gives
640x480 image.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150503/0977bb74/attachment.html>


More information about the grass-dev mailing list