소스 검색

fixed typowq

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45161 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin 14 년 전
부모
커밋
e75a18c09b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      imagery/i.latlong/main.c

+ 2 - 2
imagery/i.latlong/main.c

@@ -89,8 +89,8 @@ int main(int argc, char *argv[])
     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 */