[GRASS-dev] [GRASS-SVN] r65264 - grass/trunk/lib/cairodriver

Vaclav Petras wenzeslaus at gmail.com
Mon May 18 06:46:31 PDT 2015


On Mon, May 18, 2015 at 9:40 AM, Martin Landa <landa.martin at gmail.com>
wrote:
>
> Hi,
>
> 2015-05-18 15:36 GMT+02:00 Vaclav Petras <wenzeslaus at gmail.com>:
> >> +<div class="code"><pre>
> >> +export GRASS_RENDER_IMMEDIATE=cairo
> >> +export GRASS_RENDER_FILE=vectormap.svg
> >> +
> >> +g.region vector=roadsmajor
> >> +d.vect map=roadsmajor -c
> >> +</pre></div>
> >
> > The syntax is not really nice. Is it possible to replace it with
something
> > else like d.mon? Or is this the best interface we have?
>
> I am not sure what you mean, but d.mon syntax could be:
>
> d.mon cairo out=vectormap.svg
> g.region vector=roadsmajor
> d.vect map=roadsmajor -c
> d.mon -r

I think this is exactly what I mean. Any reason for using the variables
instead of d.mon?

I know the difference is that it d.mon write to session env file thus
changing the environment for all. The variables might be better for
scripting but still the API is ugly. I don't have an idea what should go to
the documentation.

> Martin
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150518/731dbbae/attachment.html>


More information about the grass-dev mailing list