[GRASS-user] d.rast in python script
frank.david at geophom.fr
Wed Oct 24 06:21:50 PDT 2018
Le 24/10/2018 à 15:14, Nikos Alexandris a écrit :
> * Frank David <frank.david at geophom.fr> [2018-10-24 12:04:43 +0200]:
>> Le 24/10/2018 à 11:58, Nikos Alexandris a écrit :
>>> * Frank David <frank.david at geophom.fr> [2018-10-24 11:35:07 +0200]:
>>>> The G_OPT_OUTPUT option generate well the check box "add tree
>>>> layer" in my script GUI.
>>>> My problem, now is how to add the raster output while I want to set
>>>> his name by the script ? I succeed with g.copy my_raster_name to
>>>> output_raster_name. The copy is well displayed but this creates a
>>>> copy what is not very convenient...
>> g.rename works too. But it's not more convenient because I need to
>> keep my raster in his original name.
> apologies, but I think I missed the point of what you need to do. Is the
> "copy" not convenient because of "wasting" space? If yes, here another
> suggestion then:
> In Python, something like:
Thanks Nikos, but it's not the point. I just need to add to the display
tree rasters I calculate with python script without G_OPT_OUTPUT because
I want to name it by script (the name comes from different attributes of
vector maps). But, it looks that only G_OPT_OUTPUT adds the check box
"add tree layer" on the script GUI.
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
More information about the grass-user