[GRASS-user] d.vect output a black PNG

Anna Petrášová kratochanna at gmail.com
Thu Jan 18 15:59:25 PST 2018


Have you tried cairo driver? I feel like I've seen something like this
before with PNG driver.

Anna

On Thu, Jan 18, 2018 at 5:46 PM, Carlos Grohmann <carlos.grohmann at gmail.com>
wrote:

> Hello all
>
> Continuing my process of making a series of maps for a paper using python
> loops and d.mon with PNG outputs, now d.vect is giving me a hard time.
>
> using a loop like this one:
>
>     for dem in dems:
>         out_shade = dem + area + '_shade_315_20'
>         vect_contour = dem + area + '_contours_zoom'
>         grass.run_command('g.region',n=n,s=s,w=w,e=e, flags='pa')
>         grass.run_command('d.mon', start='png',
> output=dem+area+'_shade_contours.png', \
>             resolution='3', height=500, width=500, overwrite=True)
>         grass.run_command('d.rast', map=out_shade)
>         grass.run_command('d.vect', map=vect_contour, type='line')
>         grass.run_command('d.grid', size='0.025', text_color='black',
> fontsize=16, flags='c')
>         grass.run_command('d.mon', stop='png')
>
> I get maps that are ok, some that are partially blacked out and some that
> are completely black!
>
> Any hints on this? The area in the images below is quite small, and the
> contour lines were calculated only in this small region, to keep the
> filesize small.
>
>
> I tried this on MacOS (homebrew and Michael's new binary) and on Linux,
> with the same results.
>
>
> many thanks
>
> Carlos
>
>
>
>
>
>
> [image: Inline image 1][image: Inline image 2][image: Inline image 4][image:
> Inline image 5][image: Inline image 3]
>
>
> --
> Prof. Carlos Henrique Grohmann
> Institute of Energy and Environment - Univ. of São Paulo, Brazil
> - Digital Terrain Analysis | GIS | Remote Sensing -
>
> http://carlosgrohmann.com
> http://orcid.org/0000-0001-5073-5572
> ________________
> Can’t stop the signal.
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180118/312cfae6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: srtm30_SantaCatarina_shade_contours.png
Type: image/png
Size: 79883 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180118/312cfae6/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tdx12_SantaCatarina_shade_contours.png
Type: image/png
Size: 3224 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180118/312cfae6/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tdx30_SantaCatarina_shade_contours.png
Type: image/png
Size: 5305 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180118/312cfae6/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aster30_SantaCatarina_shade_contours.png
Type: image/png
Size: 49635 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180118/312cfae6/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aw3d30_SantaCatarina_shade_contours.png
Type: image/png
Size: 88061 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180118/312cfae6/attachment-0009.png>


More information about the grass-user mailing list