[GRASS-user] exporting map display

Anna Petrášová kratochanna at gmail.com
Wed Sep 9 09:27:38 PDT 2015


Hi Vincent,

if I understand your use case correctly, d.to.rast should do what you want.
It works in GUI. But maybe I am misunderstanding.

On Wed, Sep 9, 2015 at 9:52 AM, Vincent Bain <bain at toraval.fr> wrote:

> Thanks you Anna,
>
> unfortunately I understand d.to.rast cannot handle the content of the
> gui default display frame, which is the only display that allows me to
> tweak transparency.
>
> My temporary fix was to :
> -"set computational region from display extent" ;
> -press the button "save display to graphic file", outputting my
> composition in a source.png file ;
> -then write down a short shell script in this flavor :
>
> %------------
> eval `g.region -g`
> IFS=,
> size=($(identify -format %w,%h source.png))
> gdal_translate -gcp 0 0 $w $n -gcp ${size[0]} 0 $e $n -gcp ${size[0]}
> ${size[1]} $e $s source.png target.tif
> gcps2wld.py target.tif>target.tfw
> %------------
>
> This method is certainly not much accurate but it provides me a fast
> georeferenced snapshot of a map composition.
>
>
>
> Yours,
> Vincent
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150909/7c86bb83/attachment.html>


More information about the grass-user mailing list