浏览代码

r.tile: adjust cellhd of output tiles

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72760 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 6 年之前
父节点
当前提交
26f34f73fd
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      raster/r.tile/main.c

+ 3 - 0
raster/r.tile/main.c

@@ -176,6 +176,9 @@ static void write_support_files(int xtile, int ytile, int overlap)
     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);