[GRASS-CVS] hamish: grass/src/raster/r.report/cmd prt_report.c,
1.1.1.1, 1.2
grass at intevation.de
grass at intevation.de
Mon Nov 19 22:06:20 EST 2007
Author: hamish
Update of /grassrepository/grass/src/raster/r.report/cmd
In directory doto:/tmp/cvs-serv23370/grass/src/raster/r.report/cmd
Modified Files:
prt_report.c
Log Message:
more precise conversions to feet, square miles and acres
(merge from 6.3 HEAD)
Index: prt_report.c
===================================================================
RCS file: /grassrepository/grass/src/raster/r.report/cmd/prt_report.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- prt_report.c 29 Dec 1999 15:11:12 -0000 1.1.1.1
+++ prt_report.c 20 Nov 2007 03:06:18 -0000 1.2
@@ -62,7 +62,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:
@@ -74,7 +74,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