Skip to content

Commit

Permalink
Merge pull request #211 from Jwely/master
Browse files Browse the repository at this point in the history
tiny update to suit Affine version 3.0
perrygeo authored May 14, 2020
2 parents 853a0c3 + 00af862 commit ef043bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rasterstats/io.py
Original file line number Diff line number Diff line change
@@ -154,8 +154,8 @@ def bounds_window(bounds, affine):

def window_bounds(window, affine):
(row_start, row_stop), (col_start, col_stop) = window
w, s = (col_start, row_stop) * affine
e, n = (col_stop, row_start) * affine
w, s = affine * (col_start, row_stop)
e, n = affine * (col_stop, row_start)
return w, s, e, n


0 comments on commit ef043bb

Please sign in to comment.