[GRASS-SVN] r60842 - grass/trunk/raster/r.patch
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 16 09:21:07 PDT 2014
Author: hcho
Date: 2014-06-16 09:21:07 -0700 (Mon, 16 Jun 2014)
New Revision: 60842
Modified:
grass/trunk/raster/r.patch/main.c
Log:
r.patch: check west & east bounds as well
Modified: grass/trunk/raster/r.patch/main.c
===================================================================
--- grass/trunk/raster/r.patch/main.c 2014-06-16 15:29:14 UTC (rev 60841)
+++ grass/trunk/raster/r.patch/main.c 2014-06-16 16:21:07 UTC (rev 60842)
@@ -137,7 +137,10 @@
Rast_update_cell_stats((CELL *) presult, ncols, &statf[0]);
for (i = 1; i < nfiles; i++) {
/* check if raster i overlaps with the current row */
- if (south_edge >= cellhd[i].north || north_edge <= cellhd[i].south)
+ if (south_edge >= cellhd[i].north ||
+ north_edge <= cellhd[i].south ||
+ window.west >= cellhd[i].east ||
+ window.east <= cellhd[i].west)
continue;
Rast_get_row(infd[i], patch, row, out_type);
More information about the grass-commit
mailing list