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

Anna Petrášová kratochanna at gmail.com
Tue Mar 3 10:48:50 PST 2015


On Tue, Mar 3, 2015 at 11:13 AM, epi <massimodisasha at gmail.com> wrote:

> Thank Martin,
>
> I tried with this :
>
> http://nbviewer.ipython.org/gist/anonymous/e72c4a3b311370ade0db
>
> but I still have the same behavior
>

I think it's GRASS_RENDER_FILE_READ, not GRASS_RENDER_READ_FILE.
http://grass.osgeo.org/grass71/manuals/cairodriver.html


Anna



> 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
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150303/84e51ec2/attachment-0001.html>


More information about the grass-dev mailing list