Skip to content

Commit

Permalink
wxGUI AddWSDialog: fix 'Access window out of range in RasterIO()' err…
Browse files Browse the repository at this point in the history
…or (#693)

Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
  • Loading branch information
tmszi and petrasovaa committed Jun 7, 2020
1 parent 65c2917 commit 0798df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/r.in.wms/wms_drv.py
Expand Up @@ -425,7 +425,7 @@ def __init__(self, params, bbox, region, tile_size, proj_srs, cap_file=None):
rows = int(region['rows'])

# computes parameters of tiles
self.num_tiles_x = cols / self.tile_cols
self.num_tiles_x = cols // self.tile_cols
self.last_tile_x_size = cols % self.tile_cols
self.tile_length_x = float(
self.tile_cols) / float(cols) * (self.bbox['maxx'] - self.bbox['minx'])
Expand All @@ -435,7 +435,7 @@ def __init__(self, params, bbox, region, tile_size, proj_srs, cap_file=None):
self.last_tile_x = True
self.num_tiles_x = self.num_tiles_x + 1

self.num_tiles_y = rows / self.tile_rows
self.num_tiles_y = rows // self.tile_rows
self.last_tile_y_size = rows % self.tile_rows
self.tile_length_y = float(
self.tile_rows) / float(rows) * (self.bbox['maxy'] - self.bbox['miny'])
Expand Down

0 comments on commit 0798df3

Please sign in to comment.