[GRASS-SVN] r45161 - grass/trunk/imagery/i.latlong
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 22 21:56:33 EST 2011
Author: ychemin
Date: 2011-01-22 18:56:33 -0800 (Sat, 22 Jan 2011)
New Revision: 45161
Modified:
grass/trunk/imagery/i.latlong/main.c
Log:
fixed typowq
Modified: grass/trunk/imagery/i.latlong/main.c
===================================================================
--- grass/trunk/imagery/i.latlong/main.c 2011-01-22 23:29:42 UTC (rev 45160)
+++ grass/trunk/imagery/i.latlong/main.c 2011-01-23 02:56:33 UTC (rev 45161)
@@ -89,8 +89,8 @@
ymax = cellhd.north;
nrows = Rast_window_rows();
ncols = Rast_window_cols();
- stepx = abs(xmax-xmin)*(double)ncols;
- stepy = abs(ymax-ymin)*(double)nrows;
+ stepx = abs(xmax-xmin)/(double)ncols;
+ stepy = abs(ymax-ymin)/(double)nrows;
/*Stolen from r.sun */
/* Set up parameters for projection to lat/long if necessary */
More information about the grass-commit
mailing list