[GRASS-CVS] hamish: grass6/raster/r.report prt_report.c, 2.4,
2.4.2.1
grass at intevation.de
grass at intevation.de
Fri Nov 16 06:18:36 EST 2007
Author: hamish
Update of /grassrepository/grass6/raster/r.report
In directory doto:/tmp/cvs-serv1140/grass6/raster/r.report
Modified Files:
Tag: releasebranch_6_3
prt_report.c
Log Message:
more precise conversions for acres and sq miles
(merge from HEAD)
Index: prt_report.c
===================================================================
RCS file: /grassrepository/grass6/raster/r.report/prt_report.c,v
retrieving revision 2.4
retrieving revision 2.4.2.1
diff -u -d -r2.4 -r2.4.2.1
--- prt_report.c 30 Sep 2007 07:08:23 -0000 2.4
+++ prt_report.c 16 Nov 2007 11:18:34 -0000 2.4.2.1
@@ -63,7 +63,7 @@
case ACRES:
unit[i].label[0] = "";
unit[i].label[1] = "acres";
- unit[i].factor = 2.471e-4;
+ unit[i].factor = 2.47105381467165e-4; /* 640 acres in a sq mile */
break;
case HECTARES:
@@ -75,7 +75,7 @@
case SQ_MILES:
unit[i].label[0] = "square";
unit[i].label[1] = " miles";
- unit[i].factor = 3.861e-7;
+ unit[i].factor = 3.86102158542446e-7; /* 1 / ( (0.0254m/in * 12in/ft * 5280ft/mi)^2 ) */
break;
default:
More information about the grass-commit
mailing list