[GRASS-dev] [GRASS GIS] #2428: r.external to accept gdal config options

GRASS GIS trac at osgeo.org
Thu Sep 25 16:59:31 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:  r.external   |    Platform:  Unspecified              
      Cpu:  x86-64       |  
-------------------------+--------------------------------------------------

Comment(by glynn):

 Replying to [comment:1 neteler]:
 > The request sounds reasonable but I didn't figure out how to pass
 "papszOptions" to GDAL as used in r.external. The magic line in r.out.gdal
 is this:

 > but in r.external GDALOpen() is used. Perhaps a GDAL expert can tell us
 the trick.

 Note that r.external is the analogue of r.in.gdal, which doesn't accept
 any configuration options.

 The analogue of r.out.gdal is r.external.out, which has an options=
 option.

 If options are needed for reading, a similar option should be added to
 both r.in.gdal and r.external, presumably using GDALOpenEx() instead of
 GDALOpen(). The latter will require extending the GDAL "link" format
 (lib/raster/gdal.c).

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2428#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list