[GRASS-dev] d.mon rendering more layers problem

Hi,

when I try to render raster and vector layer into PNG file in grass7
with d.mon, only the last layer is visible - I can see only the
vector.
I use this code in python script:

    os.environ['GRASS_TRANSPARENT'] = "TRUE"
    grass.run_command('d.mon', start='png', output = "testFile.png",
width = 640, height = 480, overwrite = True)
    grass.run_command('d.rast', map = 'elevation')
    grass.run_command('d.vect', map = 'roadsmajor', color = 'red')
    grass.run_command('d.mon', stop = 'png')

Do I miss something or it's a bug?

Thanks,
Anna

Hi,

2012/7/10 Anna Kratochvílová <kratochanna@gmail.com>:

when I try to render raster and vector layer into PNG file in grass7
with d.mon, only the last layer is visible - I can see only the
vector.

probably missing GRASS_PNG_READ env variable, please try r52358.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Tue, Jul 10, 2012 at 9:58 AM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2012/7/10 Anna Kratochvílová <kratochanna@gmail.com>:

when I try to render raster and vector layer into PNG file in grass7
with d.mon, only the last layer is visible - I can see only the
vector.

probably missing GRASS_PNG_READ env variable, please try r52358.

Thanks a lot, it works now

Anna

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa