[GRASS-dev] [GRASS GIS] #2428: r.external to accept gdal config options
GRASS GIS
trac at osgeo.org
Sat Sep 20 11:14:53 PDT 2014
#2428: r.external to accept gdal config options
-------------------------+--------------------------------------------------
Reporter: perrygeo | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Default | Version: svn-trunk
Keywords: | Platform: Unspecified
Cpu: x86-64 |
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2428>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list