[GRASS-dev] display monitor (how to everlay 2 layers)

epi massimodisasha at gmail.com
Tue Mar 3 08:13:29 PST 2015


Thank Martin,

I tried with this :

http://nbviewer.ipython.org/gist/anonymous/e72c4a3b311370ade0db <http://nbviewer.ipython.org/gist/anonymous/e72c4a3b311370ade0db>

but I still have the same behavior

Thanks a lot to for looking into this!

Massimo.


> On Mar 3, 2015, at 10:30 AM, Martin Landa <landa.martin at gmail.com> wrote:
> 
> Hi,
> 
> 2015-03-03 16:23 GMT+01:00 epi <massimodisasha at gmail.com>:
>> GRASS_TRANSPARENT=TRUE
>> GRASS_TRUECOLOR=TRUE
>> GRASS_PNG_COMPRESSION=9
>> GRASS_PNG_AUTO_WRITE=TRUE
>> export GRASS_TRANSPARENT GRASS_TRUECOLOR GRASS_PNG_COMPRESSION GRASS_PNG_AUTO_WRITE
> 
> render-related variables has been renamed to GRASS_RENDER_, see [1].
> 
>> os.environ['GRASS_RENDER_IMMEDIATE'] = 'png'
>> os.environ['GRASS_RENDER_FILE'] = 'pfile3.png'
>> os.environ['GRASS_RENDER_FILE_COMPRESSION'] = '9'
>> os.environ['GRASS_RENDER_WIDTH'] = '640'
>> os.environ['GRASS_RENDER_HEIGHT'] = '480'
>> os.environ['GRASS_RENDER_TRANSPARENT']='TRUE'
>> 
>> monitor_old = None
>> genv = gisenv()
>> if 'MONITOR' in genv:
>>    monitor_old = genv['MONITOR']
>>    g.gisenv(unset='MONITOR')
>> 
>> d.vect(map='p')
>> d.rast(map='basemap')
>> ###
>> 
>> this time the png is generated, but i'm no more able to overlay 2 different layers to compose my map ...
> 
> You need to define GRASS_RENDER_READ_FILE='TRUE'. Martin
> 
> [1] http://grass.osgeo.org/grass70/manuals/variables.html#list-of-selected-grass-environment-variables-for-rendering
> 
> -- 
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150303/a11b6a1a/attachment.html>


More information about the grass-dev mailing list