Skip to content
Permalink
Browse files
[processing] fix out of bounds error in extract values scripts
  • Loading branch information
alexbruy committed May 21, 2014
1 parent 0e48b3a commit 21da03e904ee680ed6da3b762ca23afa958942a8
@@ -86,7 +86,7 @@
x = pnt[0]
y = pnt[1]
(rX, rY) = raster.mapToPixel(x, y, geoTransform)
if rX > rasterXSize or rY > rasterYSize:
if rX >= rasterXSize or rY >= rasterYSize:
feature = layer.GetNextFeature()
continue
value = data[rY, rX]
@@ -114,7 +114,7 @@
x = pnt[0]
y = pnt[1]
(rX, rY) = mapToPixel(x, y, geoTransform)
if rX > rasterXSize or rY > rasterYSize:
if rX >= rasterXSize or rY >= rasterYSize:
feature = layer.GetNextFeature()
continue
value = data[rY, rX]

0 comments on commit 21da03e

Please sign in to comment.