diff --git a/plugins/input/gdal/gdal_datasource.cpp b/plugins/input/gdal/gdal_datasource.cpp index da2ca101d..6c692103e 100644 --- a/plugins/input/gdal/gdal_datasource.cpp +++ b/plugins/input/gdal/gdal_datasource.cpp @@ -119,7 +119,7 @@ void gdal_datasource::bind() const shared_dataset_ = *params_.get("shared", false); band_ = *params_.get("band", -1); - GDALDataset *dataset = open_dataset(); + dataset_ = open_dataset(); nbands_ = dataset_->GetRasterCount(); width_ = dataset_->GetRasterXSize(); height_ = dataset_->GetRasterYSize();