[GRASS-dev] standardized options

Markus Metz markus.metz.giswork at gmail.com
Tue Jul 16 03:31:37 PDT 2013


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


More information about the grass-dev mailing list