[GRASS-SVN] r64081 - grass/branches/releasebranch_7_0/vector/v.what.rast
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 12 04:25:46 PST 2015
Author: neteler
Date: 2015-01-12 04:25:46 -0800 (Mon, 12 Jan 2015)
New Revision: 64081
Modified:
grass/branches/releasebranch_7_0/vector/v.what.rast/main.c
Log:
v.what.rast: better treat points on region boundary, see http://lists.osgeo.org/pipermail/grass-dev/2014-October/071158.html (trunk, r62254)
Modified: grass/branches/releasebranch_7_0/vector/v.what.rast/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.what.rast/main.c 2015-01-12 12:12:21 UTC (rev 64080)
+++ grass/branches/releasebranch_7_0/vector/v.what.rast/main.c 2015-01-12 12:25:46 UTC (rev 64081)
@@ -220,6 +220,8 @@
/* Add point to cache */
row = Rast_northing_to_row(Points->y[0], &window);
col = Rast_easting_to_col(Points->x[0], &window);
+ if (col < 0 || col >= window.cols || row < 0 || row >= window.rows)
+ continue;
cache[point_cnt].row = row;
cache[point_cnt].col = col;
More information about the grass-commit
mailing list