[GRASS-dev] Rendering from command line does not respect size
Martin Landa
landa.martin at gmail.com
Sun May 3 03:09:54 PDT 2015
Hi,
2015-05-01 5:24 GMT+02:00 Vaclav Petras <wenzeslaus at gmail.com>:
> 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:
>
> export GRASS_RENDER_HEIGHT=1350
> export GRASS_RENDER_WIDTH=1500
>
> But with cairo I get still the default size:
>
> d.mon cairo
> d.rast aspect
> # map.png size is now 640x480
> d.mon stop=cairo
> rm map.png
please try out r65178. d.mon should respect GRASS_RENDER_HEIGHT and
GRASS_RENDER_WIDTH if `width/height` is not set.
> With png I get an error:
>
> d.mon png
> d.rast aspect
> ERROR: PNG: input file has incorrect dimensions: expected: 640x480 got:
> 1500x1350
> # map.png is now empty but it has the correct size
> d.mon stop=png
> rm map.png
Should be also fixed. Martin
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
More information about the grass-dev
mailing list