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

Benjamin Ducke benducke at fastmail.fm
Mon Aug 12 08:54:09 PDT 2013


On 08/12/2013 05:39 PM, Pietro wrote:
> 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
>
>
[snip]
>
> Why should we not use TYPE_DOUBLE for these parameters (n,s,e,w,)? Is
> it to not loose significant digits?

It needs to be a string, so that you can use
common lat/lon notations in the format "°dd'mm''ss".

Ben

>
> 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
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>



-- 
Dr. Benjamin Ducke, M.A.
{*} Geospatial Consultant
{*} GIS Developer

   benducke at fastmail.fm


More information about the grass-dev mailing list