Skip to content

Commit

Permalink
Merge pull request #85 from mhearne-usgs/affine_fix
Browse files Browse the repository at this point in the history
Changed src.transform to src.affine... will have to change it back so…
  • Loading branch information
emthompson-usgs authored Aug 7, 2017
2 parents 19e6995 + c918a28 commit 6d097d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapio/gdal.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def getFileGeoDict(cls,filename):
geodict = {}

with rasterio.open(filename) as src:
aff = src.transform
aff = src.affine
geodict['dx'] = aff.a
geodict['dy'] = -1*aff.e
geodict['xmin'] = aff.xoff + geodict['dx']/2.0
Expand Down

0 comments on commit 6d097d2

Please sign in to comment.