[GRASS-dev] Why the parameters of "g.region" are defined as string?

Pietro peter.zamb at gmail.com
Mon Aug 12 08:39:37 PDT 2013


Hi all,

Today I've just realize that the parameter of g.region are defined as string:

http://trac.osgeo.org/grass/browser/grass/trunk/general/g.region/main.c#L203


for example:

{{{
    parm.north = G_define_option();
    parm.north->key = "n";
    parm.north->key_desc = "value";
    parm.north->required = NO;
    parm.north->multiple = NO;
    parm.north->type = TYPE_STRING;
    parm.north->description = _("Value for the northern edge");
    parm.north->guisection = _("Bounds");
}}}

Why should we not use TYPE_DOUBLE for these parameters (n,s,e,w,)? Is
it to not loose significant digits?

Sorry if this has already been discussed, but I was not able to find
any reference in the mailing-list's archive.

Best regards

Pietro


More information about the grass-dev mailing list