<html><head></head><body><div class="ydpc2d9561yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
        <div dir="ltr" data-setdir="false">Thanks Nikos! I'll try that way too</div><div dir="ltr" data-setdir="false">:)<br><div>Chris</div></div><div><br></div>
        
        </div><div id="ydp6097852byahoo_quoted_7052892233" class="ydp6097852byahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, March 22, 2021, 5:23:11 AM EDT,  <nik@nikosalexandris.net> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">For what is worth,<br clear="none"><br clear="none">I have asked for help or commented maybe on this or similar subjects in <br clear="none">the past.<br clear="none">It is for years now that the PNG driver does not work for vector maps <br clear="none">(for me)<br clear="none">from the command line.  I have tried various terminals but I still have <br clear="none">no clear idea what the problem is.  The only way I manage to render <br clear="none">vector maps (even multiple ones, rendering on the same file) is using <br clear="none">the BMP file format.<br clear="none"><br clear="none">Here are my 'GRASS GIS display driver' related settings:<br clear="none"><br clear="none"><a shape="rect" href="https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.render" rel="nofollow" target="_blank">https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.render</a><br clear="none"><br clear="none">(BMP set here for vector maps: <br clear="none"><a shape="rect" href="https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.render#L22" rel="nofollow" target="_blank">https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.render#L22</a>).<br clear="none"><br clear="none"><br clear="none">My custom functions to render vector maps are `tyvector` and <br clear="none">`tyvector.add` defined in:<br clear="none"><br clear="none"><a shape="rect" href="https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.tygrass.vector" rel="nofollow" target="_blank">https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.tygrass.vector</a><br clear="none"><br clear="none">If you take out the `tycat` part that prints an image in the terminal, <br clear="none">then the rest of the steps render a vector map in a new file or render <br clear="none">on top of an existing file.<br clear="none"><br clear="none"><br clear="none">Various helper functions to (re-)set display driver parameters here:<br clear="none"><br clear="none"><a shape="rect" href="https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.tygrass.helpers" rel="nofollow" target="_blank">https://gitlab.com/NikosAlexandris/tygrass/-/blob/6a0e13310c4a7a086dc74ee6c61c2fa467881a85/.grass.tygrass.helpers</a><br clear="none"><br clear="none"><br clear="none">Maybe this is useful, Nikos<br clear="none">---<br clear="none"><br clear="none"><div class="ydp6097852byqt0626205733" id="ydp6097852byqtfd11704"><br clear="none">On 2021-03-22 00:30, Chris Bartolomei via grass-user wrote:<br clear="none"><br clear="none">> Thanks Helmut - that's exactly what I'm looking for. It's really <br clear="none">> strange that it isn't working on our cluster but I'm back in the office <br clear="none">> tomorrow so I'll try it again, carefully copying the variables as you <br clear="none">> have them set.<br clear="none">> Thanks again for all the support you give everyone!<br clear="none">> :)<br clear="none">> Chris<br clear="none">> <br clear="none">> On Sunday, March 21, 2021, 3:40:51 PM EDT, Helmut Kudrnovsky <br clear="none">> <<a shape="rect" href="mailto:hellik@web.de" rel="nofollow" target="_blank">hellik@web.de</a>> wrote:<br clear="none">> <br clear="none">>> Helmut ... thank you for your example however I think there is a <br clear="none">>> misunderstanding of what I am trying to do.<br clear="none">>> I am using >GRASS on Linux (on a cluster) and the issue I am <br clear="none">>> experiencing is overlaying two polygon maps (layers in Arc-speak).<br clear="none">>> Points and lines on top of ONE set of polygons works fine as you have <br clear="none">>> shown, however using two or more polygon maps<br clear="none">>> (layers) does not seem to work. I attached an example of what i am <br clear="none">>> trying to achieve: Take for instance a polygon<br clear="none">>> representing Italy and you wanted it colored dark gray, then you want <br clear="none">>> to overlay on top of that an administrative map<br clear="none">>> showing only the areas of Lazio and Liguria colored in blue but no <br clear="none">>> other administrative areas. The result would look<br clear="none">>> like the Italy_sample.png file i attached (I made is using ArcPro as i <br clear="none">>> am not in the office with access to our cluster).<br clear="none">>> This is what is not working using the d.mon=png, d.vect tools. Could <br clear="none">>> you please try something similar and see if it works for you (on <br clear="none">>> linux)?<br clear="none">> <br clear="none">> I'm not on linux, though I think it works there too.<br clear="none">> <br clear="none">> testing here in with winGRASS 7.8.5 and overlaping vector polygon <br clear="none">> layers by following commands:<br clear="none">> <br clear="none">> ---------------<br clear="none">> <br clear="none">> REM start of the batch file<br clear="none">> <br clear="none">> set GRASS_RENDER_IMMEDIATE=png<br clear="none">> set GRASS_RENDER_WIDTH=640<br clear="none">> set GRASS_RENDER_HEIGHT=480<br clear="none">> set GRASS_RENDER_TRANSPARENT=true<br clear="none">> set GRASS_RENDER_TRUECOLOR=true<br clear="none">> set GRASS_RENDER_FILE_COMPRESSION=9<br clear="none">> set GRASS_MESSAGE_FORMAT=plain<br clear="none">> set GRASS_RENDER_FILE_READ=TRUE<br clear="none">> <br clear="none">> g.region vector=<a shape="rect" href="mailto:x006441899_100_VGD_AT@data" rel="nofollow" target="_blank">x006441899_100_VGD_AT@data</a><br clear="none">> <br clear="none">> d.vect map=<a shape="rect" href="mailto:x006441899_100_VGD_AT@data" rel="nofollow" target="_blank">x006441899_100_VGD_AT@data</a> fill_color=192:192:192:255 <br clear="none">> width=1<br clear="none">> d.vect map=<a shape="rect" href="mailto:x006441899_100_VGD_BL@data" rel="nofollow" target="_blank">x006441899_100_VGD_BL@data</a> color=0:0:0:255 <br clear="none">> fill_color=128:255:0:255 width=1<br clear="none">> d.vect map=<a shape="rect" href="mailto:x006441899_100_VGD_PG@data" rel="nofollow" target="_blank">x006441899_100_VGD_PG@data</a> color=255:0:0:255 <br clear="none">> fill_color=0:0:255:255 width=2<br clear="none">> <br clear="none">> REM end of the batch file<br clear="none">> <br clear="none">> ---------------<br clear="none">> <br clear="none">> see attached file, overlaying several polygones works here.<br clear="none">> <br clear="none">> maybe others can test it on linux.<br clear="none">> <br clear="none">> kind regards<br clear="none">> Helmut<br clear="none">> _______________________________________________<br clear="none">> grass-user mailing list<br clear="none">> <a shape="rect" href="mailto:grass-user@lists.osgeo.org" rel="nofollow" target="_blank">grass-user@lists.osgeo.org</a><br clear="none">> <a shape="rect" href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="nofollow" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br clear="none"></div></div></div>
            </div>
        </div></body></html>