[GRASS-dev] Rendering from command line does not respect size
Markus Neteler
neteler at osgeo.org
Sat May 2 22:22:42 PDT 2015
On Sun, May 3, 2015 at 12:04 AM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
>
>
> On Sat, May 2, 2015 at 12:13 PM, Moritz Lennert
> <mlennert at club.worldonline.be> wrote:
>>
>> On 01/05/15 05:24, Vaclav Petras wrote:
>>>
>>> Hi,
>>>
>>> I was trying to render some maps automatically but I'm having problems
>>> with setting the size of the image. I set size like this:
>>>
>>> [...]
>
> Again for cairo:
>
> $ mkdir abc1
> $ cd abc1
> $ export GRASS_RENDER_HEIGHT=1350
> $ export GRASS_RENDER_WIDTH=1500
> $ g.region raster=elevation
> $ d.mon cairo
> Output file: .../abc1/map.png
> $ d.rast elevation
> $ file map.png
> map.png: PNG image data, 640 x 480, 8-bit/color RGB, non-interlaced
> (image contains elevation in 640 x 480)
Confirmed for trunk.
Indeed, in relbranch70 I get
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
# trying harder:
GRASS 7.0.1svn (nc_spm_08_grass7):~ > echo $GRASS_RENDER_TRUECOLOR
GRASS 7.0.1svn (nc_spm_08_grass7):~ > export GRASS_RENDER_TRUECOLOR=TRUE
GRASS 7.0.1svn (nc_spm_08_grass7):~ > d.mon start=png
ERROR: PNG: input file is not RGBA
huh?
Markus
More information about the grass-dev
mailing list