Please consider the following patch.

general/g.region/main.c (main): Use `G3d_regionToCellHead' instead of
copying the fields directly.

diff --git a/general/g.region/main.c b/general/g.region/main.c
index b3b2852..b47f9c4 100644
--- a/general/g.region/main.c
+++ b/general/g.region/main.c
@@ -482,24 +482,7 @@ int main (int argc, char *argv[])
                        G_fatal_error (_("Unable to read header of 3D raster 
map <[EMAIL PROTECTED]>"),
                                       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= */

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to