[GRASS-dev] [GRASS GIS] #3413: r.in.gdal/v.in.ogr: add new config option to support GDAL/OGR configuration options

#3413: r.in.gdal/v.in.ogr: add new config option to support GDAL/OGR configuration
options
-----------------------------+-------------------------
Reporter: mmetz | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.4.0
Component: Datasets | Version: svn-trunk
Keywords: GDAL/OGR import | CPU: All
Platform: All |
-----------------------------+-------------------------
GDAL/OGR support setting of various configuration options [1].

For GDAL/OGR utilities, these configuration options can be set with

{{{
<GDAL|OGR tool> --config <Key> <Value>
}}}

These configuration options may be general, GDAL specific, OGR specific,
or applicable to a particular GDAL/OGR driver.

Some external data can only be successfully imported if non-default
configuration options are used. Therefore r.in.gdal/v.in.ogr should have a
new `config` option to support setting of these configuration options with
`CPLSetConfigOption()`.

[1] [https://trac.osgeo.org/gdal/wiki/ConfigOptions\]

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3413&gt;
GRASS GIS <https://grass.osgeo.org>

#3413: r.in.gdal/v.in.ogr: add new config option to support GDAL/OGR configuration
options
--------------------------+-----------------------------
  Reporter: mmetz | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.4.2
Component: Datasets | Version: svn-trunk
Resolution: | Keywords: GDAL/OGR import
       CPU: All | Platform: All
--------------------------+-----------------------------

Comment (by neteler):

How complicated would it be to implement this?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3413#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3413: r.in.gdal/v.in.ogr: add new config option to support GDAL/OGR configuration
options
--------------------------+-----------------------------
  Reporter: mmetz | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.6.0
Component: Datasets | Version: svn-trunk
Resolution: | Keywords: GDAL/OGR import
       CPU: All | Platform: All
--------------------------+-----------------------------
Changes (by mmetz):

* milestone: 7.4.2 => 7.6.0

Comment:

Replying to [comment:3 neteler]:
> How complicated would it be to implement this?

It would be fairly simple for r.in.gdal/v.in.ogr.

Regarding v.external/r.external, it would be more complicated because the
raster and vector libraries need modifications.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3413#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#3413: r.in.gdal/v.in.ogr: add new config option to support GDAL/OGR configuration
options
--------------------------+-----------------------------
  Reporter: mmetz | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 7.6.1
Component: Datasets | Version: svn-trunk
Resolution: fixed | Keywords: GDAL/OGR import
       CPU: All | Platform: All
--------------------------+-----------------------------
Changes (by mmetz):

* status: new => closed
* resolution: => fixed

Comment:

Closing as fixed because GDAL configuration options can now be provided to
r.in.gdal / v.in.ogr with the new gdal_config option in 7.6.

Regarding [r|v].external, a new ticket should be created because it
requires changes at library level.

While at it, v.external should also support a simple spatial filter with a
BBOX and where conditions.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3413#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>