فهرست منبع

add rows, cols and cells output for -g

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49602 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 13 سال پیش
والد
کامیت
d6d03cdad8
2فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 6 0
      raster/r.info/main.c
  2. 3 0
      raster/r.info/r.info.html

+ 6 - 0
raster/r.info/main.c

@@ -317,6 +317,12 @@ int main(int argc, char **argv)
 	    G_format_resolution(cellhd.ew_res, tmp3, cellhd.proj);
 	    fprintf(out, "ewres=%s\n", tmp3);
 
+            fprintf(out, "rows=%d\n", cellhd.rows);
+            fprintf(out, "cols=%d\n", cellhd.cols);
+            
+            fprintf(stdout, "cells=%lld\n",
+                    (long long)cellhd.rows * cellhd.cols);
+            
 	    fprintf(out, "datatype=%s\n",
 		    (data_type == CELL_TYPE ? "CELL" :
 		     (data_type == DCELL_TYPE ? "DCELL" :

+ 3 - 0
raster/r.info/r.info.html

@@ -84,6 +84,9 @@ east=609000
 west=589980
 nsres=30
 ewres=30
+rows=477
+cols=634
+cells=302418
 datatype=FCELL
 
 GRASS> r.info -r slope