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

Anna Kratochvílová kratochanna at gmail.com
Tue Jul 10 00:06:24 PDT 2012


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


More information about the grass-dev mailing list