Le 24/10/2018 à 15:14, Nikos Alexandris a écrit :
* Frank David [2018-10-24 12:04:43 +0200]:
Le 24/10/2018 à 11:58, Nikos Alexandris a écrit :
* Frank David [2018-10-24 11:35:07 +0200]:
Stephan,
The G_OPT_OUTPUT option generate well the check box "add tree
layer" in my script GUI.
My
* Frank David [2018-10-24 12:04:43 +0200]:
Le 24/10/2018 à 11:58, Nikos Alexandris a écrit :
* Frank David [2018-10-24 11:35:07 +0200]:
Stephan,
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
Le 24/10/2018 à 11:58, Nikos Alexandris a écrit :
* Frank David [2018-10-24 11:35:07 +0200]:
Stephan,
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 succ
* Frank David [2018-10-24 11:35:07 +0200]:
Stephan,
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_nam
Blumentrath ; Nikos
Alexandris
*Cc:* Laurent C. ; GRASS user list
; GRASS developers list
(grass-...@lists.osgeo.org)
*Subject:* Re: [GRASS-user] d.rast in python script
Stephan,
Your last message makes me search after G_OPT_OUTPUT. I had never
realized that this option makes the "add to tree la
user list
; GRASS developers list
(grass-...@lists.osgeo.org)
*Subject:* Re: [GRASS-user] d.rast in python script
Hi Stephan,
Thank you for the ticket. One thing seems to me important. Some (of
my) scripts can generate numerous rasters and one or two cumulative
raster. I don't want to a
@lists.osgeo.org>)
<mailto:grass-...@lists.osgeo.org>
Subject: Re: [GRASS-user] d.rast in python script
Hi Stephan,
Thank you for the ticket. One thing seems to me important. Some (of my) scripts
can generate numerous rasters and one or two cumulative raster. I don't want to
add base
/grass74/manuals/parser_standard_options.html
From: Frank David
Sent: onsdag 24. oktober 2018 09:35
To: Stefan Blumentrath ; Nikos Alexandris
Cc: Laurent C. ; GRASS user list
; GRASS developers list (grass-...@lists.osgeo.org)
Subject: Re: [GRASS-user] d.rast in python script
Hi Stephan,
Thank
t (thus I put
grass-dev in CC).
Cheers
Stefan
*From:*Frank David
*Sent:* onsdag 24. oktober 2018 08:26
*To:* Nikos Alexandris
*Cc:* Stefan Blumentrath ; Laurent C.
; GRASS user list
*Subject:* Re: [GRASS-user] d.rast in python script
Le 23/10/2018 à 23:26, Nikos Alexandris a écrit
loper list (thus I put grass-dev
in CC).
Cheers
Stefan
From: Frank David
Sent: onsdag 24. oktober 2018 08:26
To: Nikos Alexandris
Cc: Stefan Blumentrath ; Laurent C.
; GRASS user list
Subject: Re: [GRASS-user] d.rast in python script
Le 23/10/2018 à 23:26, Nikos Alexandris a écrit :
* F
Le 23/10/2018 à 23:26, Nikos Alexandris a écrit :
* Frank David [2018-10-23 22:06:01 +0200]:
Thank you everybody for your help. Do you know why a
run_command("d.rast"... in a python script is not enough to display a
raster ? I don't understand why this command is so different.
Display a r
* Frank David [2018-10-23 22:06:01 +0200]:
Thank you everybody for your help. Do you know why a
run_command("d.rast"... in a python script is not enough to display a
raster ? I don't understand why this command is so different.
Display a raster map where?
Nikos
signature.asc
Description:
Thank you everybody for your help. Do you know why a
run_command("d.rast"... in a python script is not enough to display a
raster ? I don't understand why this command is so different.
Frank
Le 23/10/2018 à 07:41, Nikos Alexandris a écrit :
* Stefan Blumentrath [2018-10-22 08:20:05
+]:
* Laurent C. [2018-10-20 22:06:38 +0100]:
Hello Frank,
It is not very straightforward, but it is possible.
Here is an example on how I do it:
import os
import grass.script as gscript
from grass.pygrass.gis.region import Region
# Set general env
os.environ['GRASS_RENDER_IMMEDIATE'] = "cairo"
* Stefan Blumentrath [2018-10-22 08:20:05 +]:
I think Laurents solution is for rendering maps to file/image.
If of interest, see also:
https://lists.osgeo.org/pipermail/grass-user/2018-October/079436.html
Nikos
signature.asc
Description: PGP signature
st
*Subject:* Re: [GRASS-user] d.rast in python script
Hello Laurent,
Thank you for your help. I'm very surprised by the complexity of the
way to display a raster. I thought that only d.rast was needed. Other
grass command are so simple to use...
Anayway, I don't understand wh
possible)…
Kind regards,
Stefan
From: grass-user On Behalf Of Frank David
Sent: søndag 21. oktober 2018 21:35
To: Laurent C.
Cc: GRASS user list
Subject: Re: [GRASS-user] d.rast in python script
Hello Laurent,
Thank you for your help. I'm very surprised by the complexity of the way to
di
Hello Laurent,
Thank you for your help. I'm very surprised by the complexity of the way
to display a raster. I thought that only d.rast was needed. Other grass
command are so simple to use...
Anayway, I don't understand why you need to set a image width and
height. is it pixel number between
Hello Frank,
It is not very straightforward, but it is possible.
Here is an example on how I do it:
import os
import grass.script as gscript
from grass.pygrass.gis.region import Region
# Set general env
os.environ['GRASS_RENDER_IMMEDIATE'] = "cairo"
os.environ['GRASS_RENDER_FILE_COMPRESSION'] =
Hello,
I wrote some python script and I do not find how to display created
rasters.
I tried to use d.rast but I believe this command is not designed to be
used in python script (no monitor available with d.mon -l). Am I wright
? so how to do ?...
Thank you for your help.
Frank
__
20 matches
Mail list logo