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:

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

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

I have a vague memory that such an error occurs when you have an existing map.png file in the current directory with dimensions different from the ones you set.

Moritz


_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to