[GRASS-SVN] r31403 - grass/trunk/general/g.region

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 17 16:29:55 EDT 2008


Author: neteler
Date: 2008-05-17 16:29:55 -0400 (Sat, 17 May 2008)
New Revision: 31403

Modified:
   grass/trunk/general/g.region/main.c
Log:
Ivan Shmakov: code simplification (trac #122)

Modified: grass/trunk/general/g.region/main.c
===================================================================
--- grass/trunk/general/g.region/main.c	2008-05-17 20:04:14 UTC (rev 31402)
+++ grass/trunk/general/g.region/main.c	2008-05-17 20:29:55 UTC (rev 31403)
@@ -482,24 +482,7 @@
 			G_fatal_error (_("Unable to read header of 3D raster map <%s@%s>"),
 				       name, mapset);
 
-		window.proj = win.proj;
-		window.zone = win.zone;
-		window.north = win.north;
-		window.south = win.south;
-		window.east = win.east;
-		window.west = win.west;
-		window.top = win.top;
-		window.bottom = win.bottom;
-		window.rows = win.rows;
-		window.rows3 = win.rows;
-		window.cols = win.cols;
-		window.cols3 = win.cols;
-		window.depths = win.depths;
-		window.ns_res = win.ns_res;
-		window.ns_res3 = win.ns_res;
-		window.ew_res = win.ew_res;
-		window.ew_res3 = win.ew_res;
-		window.tb_res = win.tb_res;
+		G3d_regionToCellHead (&win, &window);
 	}
 
 	/* vect= */



More information about the grass-commit mailing list