[GRASS-SVN] r54310 - grass/trunk/lib/imagery

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 16 00:46:46 PST 2012


Author: annakrat
Date: 2012-12-16 00:46:46 -0800 (Sun, 16 Dec 2012)
New Revision: 54310

Modified:
   grass/trunk/lib/imagery/iclass.c
Log:
iclass: fix usage of region

Modified: grass/trunk/lib/imagery/iclass.c
===================================================================
--- grass/trunk/lib/imagery/iclass.c	2012-12-16 07:26:54 UTC (rev 54309)
+++ grass/trunk/lib/imagery/iclass.c	2012-12-16 08:46:46 UTC (rev 54310)
@@ -69,8 +69,8 @@
 
     category = statistics->cat;
 
-    /* region set to the first band */
-    Rast_get_cellhd(refer->file[0].name, refer->file[0].mapset, &band_region);
+    /* region set to current workin region */
+    G_get_set_window(&band_region);
 
     /* find perimeter points from vector map */
     ret =



More information about the grass-commit mailing list