[GRASS-SVN] r72760 - grass/trunk/raster/r.tile

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 4 00:55:05 PDT 2018


Author: mmetz
Date: 2018-06-04 00:55:05 -0700 (Mon, 04 Jun 2018)
New Revision: 72760

Modified:
   grass/trunk/raster/r.tile/main.c
Log:
r.tile: adjust cellhd of output tiles

Modified: grass/trunk/raster/r.tile/main.c
===================================================================
--- grass/trunk/raster/r.tile/main.c	2018-06-02 14:12:15 UTC (rev 72759)
+++ grass/trunk/raster/r.tile/main.c	2018-06-04 07:55:05 UTC (rev 72760)
@@ -176,6 +176,9 @@
     cellhd.south = cellhd.north - (dst_w.rows + 2 * overlap) * src_w.ns_res;
     cellhd.west = src_w.west + xtile * dst_w.cols * src_w.ew_res;
     cellhd.east = cellhd.west + (dst_w.cols + 2 * overlap) * src_w.ew_res;
+    cellhd.rows = dst_w.rows + 2 * overlap;
+    cellhd.cols = dst_w.cols + 2 * overlap;
+    G_adjust_Cell_head(&cellhd, 1, 1);
 
     Rast_put_cellhd(name, &cellhd);
 



More information about the grass-commit mailing list