[GRASS-CVS] hamish: grass6/raster/r.report prt_report.c, 2.1,
2.1.4.1
grass at intevation.de
grass at intevation.de
Fri Nov 16 06:21:11 EST 2007
Author: hamish
Update of /grassrepository/grass6/raster/r.report
In directory doto:/tmp/cvs-serv1210/grass6/raster/r.report
Modified Files:
Tag: releasebranch_6_2
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.1
retrieving revision 2.1.4.1
diff -u -d -r2.1 -r2.1.4.1
--- prt_report.c 13 Jul 2005 15:53:33 -0000 2.1
+++ prt_report.c 16 Nov 2007 11:21:09 -0000 2.1.4.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