r.external to accept gdal config options
|Reported by:||perrygeo||Owned by:|
When linking to an external GDAL raster source, it would be useful to pass GDAL configuration options (http://trac.osgeo.org/gdal/wiki/ConfigOptions)
Consider this scenario: I need to specify a GDAL config option to read an NetCDF file correctly. I can specify
GDAL_NETCDF_BOTTOMUP=NO as an environment variable which works for most cases but when using a multiprocessing approach to parallelization (as e.g.
t.aggregate does) the newly spawned processes don't inherit the same environment and will fail.
The solution might be for
r.external to accept GDAL config options that can be applied regardless of the environment variables and can allow externally linked rasters to function properly across processes.