Permalink
Browse files

GDAL compatibility issue fixed

  • Loading branch information...
jeffersonheard committed Mar 5, 2012
1 parent 5d43833 commit 8ce8ba9c470353546b834fd2c7562489ceadf163
Showing with 1 addition and 1 deletion.
  1. +1 −1 ga_pyramid/management/commands/load_pyramid.py
@@ -151,7 +151,7 @@ def handle(self, *args, **options):
tile_ds = gdal.Open(os.path.join(path, str(level), index.next().location))
xs, xw, _0, ys, _1, yw = tile_ds.GetGeoTransform()
pyramid.pxsize_at_levels.append(xw)
- pyramid.raster_count = tile_ds.GetRasterCount()
+ pyramid.raster_count = tile_ds.RasterCount()
index.ResetReading()
for tile in index:

0 comments on commit 8ce8ba9

Please sign in to comment.