[GRASS5] Zoom

Radim Blazek blazek at itc.it
Thu May 2 03:23:29 EDT 2002


On Tuesday 30 April 2002 07:28 pm, Glynn Clements wrote:
> Personally, I think that the option parser should be significantly
> upgraded in 5.1/6.0. Enhancements would include:
>
> + Option groups (i.e. inter-dependent requirements, rather than each
> option independently being either required or not).
>
> + A more complete type system (rather than just int/float/string,
> having e.g. "dimension", "angle", "coordinate pair", "existing raster
> map name" etc as distinct types).
>
> + Improved handling of defaults, especially dynamic defaults.
>
> This is an area where the overall design would need to be thought
> through before it's worth thinking about implementation.

I have already written for g51 new
Option * G_define_standard_option (int opt)
where opt may be 
#define G_OPT_WHERE      0 /* SQL where conditions */
#define G_OPT_R_INPUT  100 /* old input raster */
#define G_OPT_R_OUTPUT 101 /* new output raster */
#define G_OPT_R_MAP    102 /* old input raster */
#define G_OPT_V_INPUT  200 /* old input vector */
#define G_OPT_V_OUTPUT 201 /* new output vector */
#define G_OPT_V_MAP    202 /* old input vector */
#define G_OPT_V_TYPE   203 /* primitive type */
#define G_OPT_V_FIELD  204 /* field number */
#define G_OPT_V_CAT    205 /* one category */
#define G_OPT_V_CATS   206 /* more categories */
....

and I started to upgrade modules for this on Tuesday. 
Now, I don't know if i should commit or remove that again
and wait for some more radical changes in parser?


Radim



More information about the grass-dev mailing list