Use of monitors

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Use of monitors

Glynn Clements

MapLayer.Render() tries to start a monitor:

                if os.system("d.mon --quiet start=gism"):

Why?

--
Glynn Clements <[hidden email]>

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: Use of monitors

Jachym Cepicky
Hi,

hmm, is that not necessary to be able to use d.* commands ?

jachym

2007/3/17, Glynn Clements <[hidden email]>:

>
> MapLayer.Render() tries to start a monitor:
>
>                 if os.system("d.mon --quiet start=gism"):
>
> Why?
>
> --
> Glynn Clements <[hidden email]>
>
> _______________________________________________
> grassgui mailing list
> [hidden email]
> http://grass.itc.it/mailman/listinfo/grassgui
>


--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: Use of monitors

Glynn Clements

Jachym Cepicky wrote:

> > MapLayer.Render() tries to start a monitor:
> >
> >                 if os.system("d.mon --quiet start=gism"):
> >
> > Why?
>
> hmm, is that not necessary to be able to use d.* commands ?

No. If you set GRASS_RENDER_IMMEDIATE=TRUE, d.* commands will generate
PPM/PGM (or PNG) files directly (aka direct rendering). All of the
environment variables which apply to the PNG driver apply to d.*
commands.

This is how gis.m (the Tcl/Tk one) generates images.

--
Glynn Clements <[hidden email]>

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: Use of monitors

Jachym Cepicky
Thanks for the advice...

Jachym

2007/3/19, Glynn Clements <[hidden email]>:

>
> Jachym Cepicky wrote:
>
> > > MapLayer.Render() tries to start a monitor:
> > >
> > >                 if os.system("d.mon --quiet start=gism"):
> > >
> > > Why?
> >
> > hmm, is that not necessary to be able to use d.* commands ?
>
> No. If you set GRASS_RENDER_IMMEDIATE=TRUE, d.* commands will generate
> PPM/PGM (or PNG) files directly (aka direct rendering). All of the
> environment variables which apply to the PNG driver apply to d.*
> commands.
>
> This is how gis.m (the Tcl/Tk one) generates images.
>
> --
> Glynn Clements <[hidden email]>
>


--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui