diff --git a/plugins/input/gdal/gdal_featureset.cpp b/plugins/input/gdal/gdal_featureset.cpp index 9af84afa6..d8608df3b 100644 --- a/plugins/input/gdal/gdal_featureset.cpp +++ b/plugins/input/gdal/gdal_featureset.cpp @@ -55,6 +55,7 @@ gdal_featureset::gdal_featureset(GDALDataset& dataset, double dy, double filter_factor) : dataset_(dataset), + ctx_(boost::make_shared()), band_(band), gquery_(q), raster_extent_(extent), @@ -64,8 +65,7 @@ gdal_featureset::gdal_featureset(GDALDataset& dataset, dy_(dy), nbands_(nbands), filter_factor_(filter_factor), - first_(true), - ctx_(boost::make_shared()) + first_(true) { ctx_->push("NODATA"); }