[GRASS-dev] Adding 3D types for "type=" option uniformly

Martin Landa landa.martin at gmail.com
Sat Sep 5 05:35:12 EDT 2009


Hi,

2009/9/5 Benjamin Ducke <benjamin.ducke at oxfordarch.co.uk>:

[...]

>    case G_OPT_V3_TYPE:
>        Opt->key = "type";
>        Opt->type = TYPE_STRING;
>        Opt->required = NO;
>        Opt->multiple = YES;
>        Opt->answer = "point,line,boundary,centroid,area,face,kernel";
>        Opt->options = "point,line,boundary,centroid,area,face,kernel";
>        Opt->description = _("Feature type");
>
> so that all modules capable of handling 3D data could just
> declare their "type=" options to be G_OPT_V3_TYPE? That way, we could
> also easily add G_VOLUME support in the future by just extending G_OPT_V3_TYPE.

It seems reasonable to me.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-dev mailing list