Re: [GRASS-dev] "add to display" when running module from the SHELL

2017-02-03 Thread Yann Chemin
yes this is indeed a pickle.

maybe something like:
-> d.mon "get the selected wx display, if none, then d.mon wx0"

if exist and selected:
add output from this module to its "stack" (i.e. set of already run d.*
commands)
-> v.random in=bla.vect out=blaout.vect -a
the -a flag in the module would take the actual selected monitor history of
d.* commands and add one line with the "d.vect blaout.vect" at the end, and
run the new history in it.


?




--
Yann Chemin
Planetary Scientist
Latest: https://peerj.com/preprints/2124/
-
*JRC:*
https://www.thefreelibrary.com/3628+-+CANHEMON+Remote+sensing+based+forest+canopy+health+monitoring...-a0453990005
*OSGeo: *https://wiki.osgeo.org/wiki/Open_Monitoring_Systems_Working_Group


On 3 February 2017 at 11:10, Martin Landa  wrote:

> 2017-02-03 11:04 GMT+01:00 Yann Chemin :
> > say all raster and imagery and vector modules that generate output
> map(s), I
> > would like this(ese) map(s) to be added to the current stack in the
> current
> > display, the same way it works in the GUI version of the modules (i.e.
> > Check-box "Add created maps to layer tree").
>
> so, something like:
>
> # new flag -a: Add new maps to display automaticaly
> d.mon wx0 -a
> v.random out=p1 n=1000 # new map added to display
>
> ?
>
> But in this case you cannot control display parameters
> (d.vect/d.rast). There is no layer tree to define properties
> afterwards. I am not sure if such flag would make sense.
>
> Now you need:
>
> d.mon wx0
> v.random ...
> d.vect p1 ...
>
> Ma
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] "add to display" when running module from the SHELL

2017-02-03 Thread Martin Landa
2017-02-03 11:04 GMT+01:00 Yann Chemin :
> say all raster and imagery and vector modules that generate output map(s), I
> would like this(ese) map(s) to be added to the current stack in the current
> display, the same way it works in the GUI version of the modules (i.e.
> Check-box "Add created maps to layer tree").

so, something like:

# new flag -a: Add new maps to display automaticaly
d.mon wx0 -a
v.random out=p1 n=1000 # new map added to display

?

But in this case you cannot control display parameters
(d.vect/d.rast). There is no layer tree to define properties
afterwards. I am not sure if such flag would make sense.

Now you need:

d.mon wx0
v.random ...
d.vect p1 ...

Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] "add to display" when running module from the SHELL

2017-02-03 Thread Yann Chemin
say all raster and imagery and vector modules that generate output map(s),
I would like this(ese) map(s) to be added to the current stack in the
current display, the same way it works in the GUI version of the modules
(i.e. Check-box "Add created maps to layer tree").


--
Yann Chemin
Planetary Scientist
Latest: https://peerj.com/preprints/2124/
-
*JRC:*
https://www.thefreelibrary.com/3628+-+CANHEMON+Remote+sensing+based+forest+canopy+health+monitoring...-a0453990005
*OSGeo: *https://wiki.osgeo.org/wiki/Open_Monitoring_Systems_Working_Group


On 3 February 2017 at 10:52, Martin Landa  wrote:

> 2017-02-03 10:40 GMT+01:00 Yann Chemin :
> > I meant a flag in the module.
>
> flag of the module? Which module? Ma
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] "add to display" when running module from the SHELL

2017-02-03 Thread Martin Landa
2017-02-03 10:40 GMT+01:00 Yann Chemin :
> I meant a flag in the module.

flag of the module? Which module? Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] "add to display" when running module from the SHELL

2017-02-03 Thread Yann Chemin
Thanks Martin,

I meant a flag in the module.

Yann

--
Yann Chemin
Planetary Scientist
Latest: https://peerj.com/preprints/2124/
-
*JRC:*
https://www.thefreelibrary.com/3628+-+CANHEMON+Remote+sensing+based+forest+canopy+health+monitoring...-a0453990005
*OSGeo: *https://wiki.osgeo.org/wiki/Open_Monitoring_Systems_Working_Group


On 3 February 2017 at 10:11, Martin Landa  wrote:

> Hi,
>
> 2017-02-03 9:44 GMT+01:00 Yann Chemin :
> > in the GUI of modules we can select to add to display,
> > is there (or would there be) a possibility to do the same when running
> from
> > the CLI/SHELL?
>
> d.mon wx0
> d.rast ...
> d.vect ...
> ...
>
> Ma
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] "add to display" when running module from the SHELL

2017-02-03 Thread Martin Landa
Hi,

2017-02-03 9:44 GMT+01:00 Yann Chemin :
> in the GUI of modules we can select to add to display,
> is there (or would there be) a possibility to do the same when running from
> the CLI/SHELL?

d.mon wx0
d.rast ...
d.vect ...
...

Ma

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] "add to display" when running module from the SHELL

2017-02-03 Thread Yann Chemin
Hi,

in the GUI of modules we can select to add to display,
is there (or would there be) a possibility to do the same when running from
the CLI/SHELL?

Thank you,
Yann
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev