Re: [GRASS-dev] standardized options
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 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 > 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-...@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@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/grass-dev > ___ > grass-dev mailing list > grass-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev > ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] standardized options
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 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-...@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@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-dev ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] standardized options
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-...@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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev