[GRASS-CVS] hamish: grass6/scripts/r.shaded.relief r.shaded.relief, 1.20, 1.21

grass at intevation.de grass at intevation.de
Fri Nov 16 05:40:06 EST 2007


Author: hamish

Update of /grassrepository/grass6/scripts/r.shaded.relief
In directory doto:/tmp/cvs-serv32449

Modified Files:
	r.shaded.relief 
Log Message:
more precise feet->degree conversion. Doesn't really matter for this module,
but apply it for correctness anyway.


Index: r.shaded.relief
===================================================================
RCS file: /grassrepository/grass6/scripts/r.shaded.relief/r.shaded.relief,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- r.shaded.relief	27 Jul 2007 14:01:20 -0000	1.20
+++ r.shaded.relief	16 Nov 2007 10:40:04 -0000	1.21
@@ -158,13 +158,13 @@
 #LatLong locations only:
 if [ "$GIS_OPT_UNITS" = "meters" ] ; then
    #scale=111120
-   scale=`echo $scale | awk '{printf("%f", $1 * 111120 )}'`
+   scale=`echo $scale | awk '{printf("%f", $1 * 1852*60 )}'`
 fi
 
 #LatLong locations only:
 if [ "$GIS_OPT_UNITS" = "feet" ] ; then
-   #scale=370400
-   scale=`echo $scale | awk '{printf("%f", $1 * 370400 )}'`
+   #scale=364567.2
+   scale=`echo $scale | awk '{printf("%f", $1 * 6076.12*60 )}'`
 fi		
 
 #correct azimuth to East (GRASS convention):




More information about the grass-commit mailing list