Re: d.vect output a black PNG

Carlos Grohmann <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <CALkQ4RDqSC2ZDHWvo5oVj+9tZ86vFKfhx+b5R4iX_DCPhj2yWg@mail.gmail.com>
It works! Thanks for the tip Anna!

Carlos

On Thu, Jan 18, 2018 at 9:59 PM, Anna Petrášová <[email protected]>
wrote:

> 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 <
> [email protected]> 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
>> [email protected]
>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
>
>


-- 
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
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user
tdx30_SantaCatarina_shade_contours.png (image/png, 5.2 KB) - not displayed
srtm30_SantaCatarina_shade_contours.png (image/png, 78 KB) - not displayed
tdx12_SantaCatarina_shade_contours.png (image/png, 3.1 KB) - not displayed
aster30_SantaCatarina_shade_contours.png (image/png, 48.5 KB) - not displayed
aw3d30_SantaCatarina_shade_contours.png (image/png, 86 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.