[GRASS-dev] standardized options

Vaclav Petras wenzeslaus at gmail.com
Wed Sep 11 16:21:38 PDT 2013


Hi Madi,

that's interesting and there is even a G_OPT_R_ELEV, I was not aware of it.

You can have a look into these:

http://grass.osgeo.org/programming7/parser__standard__options_8c_source.html
http://grass.osgeo.org/programming7/parser__standard__options_8c.html
http://grass.osgeo.org/programming7/gislib.html#Command_Line_Parsing

Vaclav


On Tue, Jul 16, 2013 at 6:31 AM, Markus Metz
<markus.metz.giswork at gmail.com>wrote:

> You could try G_OPT_M_DIR. The comment says "directory input" but it
> should also work for output, all it should return is the path to a
> folder.
>
> Markus M
>
>
> On Mon, Jul 15, 2013 at 5:42 PM, Margherita Di Leo
> <dileomargherita at gmail.com> wrote:
> > Dear Devs,
> >
> > in r57084 Martin has added standardized options to r.ipso (thanks!). I
> would
> > like to learn more about their use, particularly, does it exist a
> standard
> > variable defined for taking a path as input? (Not a path+file name as
> > G_OPT_F_INPUT). For example this is useful in the case that a module
> > produces some pictures and/or csv files and the user wants to set a
> folder
> > for storing them. I digged into [1] but I seem not to find what I need.
> > Should I just take the path as a string? Giving to the user the
> possibility
> > to browse the folders instead of indicating a path would be IMHO more
> > convenient. Could anyone point me out where to read in order to learn
> more
> > about that?
> >
> > Thanks!
> > madi
> >
> > [1] http://grass.osgeo.org/programming7/gis_8h_source.html
> >
> > --
> > Best regards,
> >
> > Dr. Margherita DI LEO
> > Scientific / technical project officer
> >
> > European Commission - DG JRC
> > Institute for Environment and Sustainability (IES)
> > Via Fermi, 2749
> > I-21027 Ispra (VA) - Italy - TP 261
> >
> > Tel. +39 0332 78 3600
> > margherita.di-leo at jrc.ec.europa.eu
> >
> > Disclaimer: The views expressed are purely those of the writer and may
> not
> > in any circumstance be regarded as stating an official position of the
> > European Commission.
> >
> > _______________________________________________
> > grass-dev mailing list
> > grass-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-dev
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130911/df876ec7/attachment.html>


More information about the grass-dev mailing list