Commit ecb2d8e8 authored by Kelvin Rodriguez's avatar Kelvin Rodriguez
Browse files

Merge pull request #90 from kree/footprint_permissions

Fix for GeoDataset.foorprint failing on read-only cubes 
parents b3939d1c 3addda88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@ class GeoDataset(object):
                num_polygon_bytes = find_in_dict(polygon_pvl, 'Bytes')

                # I too dislike the additional open here.  Not sure a good option
                with open(self.file_name, 'r+') as f:
                with open(self.file_name, 'r') as f:
                    f.seek(start_polygon_byte - 1)
                    # Sloppy unicode to string because GDAL pukes on unicode
                    stream = str(f.read(num_polygon_bytes))