Skip to content

Commit

Permalink
support saving GeoImages in IO buffers.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Oct 26, 2015
1 parent e9a270d commit 79fe6b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mpop/imageo/geo_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def save(self, filename, compression=6,
.. _geotiff: http://trac.osgeo.org/geotiff/
"""
file_tuple = os.path.splitext(filename)
fformat = fformat or file_tuple[1][1:]
fformat = fformat or os.path.splitext(filename)[1][1:]

if fformat.lower() in ('tif', 'tiff'):
return self.geotiff_save(filename, compression, tags,
Expand Down

0 comments on commit 79fe6b7

Please sign in to comment.