Commit baa38cea authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Fixed bug in read_band method of GdalRasterData.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@7455 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 9617151d
......@@ -1132,8 +1132,8 @@ class GdalRasterData(MeshGridData):
yoff = self._get_y_index(self.y0)
buf_xsize = self.ncols
buf_ysize = self.nrows
win_xsize = int(round(abs((self._x0 - self._x1) / self._dx))) + 1
win_ysize = int(round(abs((self._y0 - self._y1) / self._dy))) + 1
win_xsize = int(round(abs((self.x0 - self.x1) / self._dx))) + 1
win_ysize = int(round(abs((self.y0 - self.y1) / self._dy))) + 1
values = band.ReadAsArray(xoff=xoff, yoff=yoff, win_xsize=win_xsize,
win_ysize=win_ysize, buf_xsize=buf_xsize, buf_ysize=buf_ysize)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment