[GRASS-SVN] r34863 - grass-addons/raster/r.viewshed

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 14 06:09:58 EST 2008


Author: neteler
Date: 2008-12-14 06:09:58 -0500 (Sun, 14 Dec 2008)
New Revision: 34863

Modified:
   grass-addons/raster/r.viewshed/grass.cc
Log:
double not int

Modified: grass-addons/raster/r.viewshed/grass.cc
===================================================================
--- grass-addons/raster/r.viewshed/grass.cc	2008-12-14 09:37:34 UTC (rev 34862)
+++ grass-addons/raster/r.viewshed/grass.cc	2008-12-14 11:09:58 UTC (rev 34863)
@@ -78,7 +78,7 @@
 	(dif_x * dif_x +
 	 dif_y * dif_y) * viewOptions.cellsize * viewOptions.cellsize;
 
-    return h - (sqdist / (2 * viewOptions.ellps_a));
+    return h - (sqdist / (2.0 * viewOptions.ellps_a));
 }
 
 



More information about the grass-commit mailing list