[Pkg-grass-general] Re: [GRASS5] r.out.gdal

Markus Neteler neteler at itc.it
Wed Jun 1 03:31:43 EDT 2005


On Wed, Jun 01, 2005 at 01:11:50PM +1200, Hamish wrote:
> > > On Fri, May 27, 2005 at 07:07:06PM +1200, Hamish wrote:
> > > > r.out.gdal - broken with quoting problem.
> > > >  (help?)
> > > 
> > > Is it possible that this problem was introduced when
> > > making 'Krovak' et al. functional? For a while r.out.gdal
> > > worked quite well.
> > 
> > OK, I think I fixed it (in 6.1-CVS).
> > 
> > Please test. If ok, I'll merge into the 6.0.1 release branch.
> 
> 
> 
> Seems to fix the quoting problem, but now I get this error:

.. which is unrelated to my fix.
 
> (spearfish57 test dataset on Debian)

Please update to spearfish60 to avoid region problems.

> G:user1 > r.out.gdal in=elevation.10m out=elev format=GTiff type=Float32
> Writing format: GTiff
> Writing type:   Float32
> ERROR 4: `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.
> 
> GDALOpen failed - 4
> `/home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m' not recognised as a supported file format.
 
what does

gdalinfo /home/hamish/grassdata/spearfish57/PERMANENT/cellhd/elevation.10m
say?

 
> The GDAL-GRASS plugin is installed from the DebianGIS libgdal1-grass 
> package.
> 
> G:user1 > locate gdal_GRASS.so
> /usr/lib/gdal_GRASS.so

What does

 ldd /usr/lib/gdal_GRASS.so

say?

AFAIK the plugin directory must be ../gdalplugins:

grep gdalplugins ./gcore/gdaldrivermanager.cpp
 * Search in lib/gdalplugins instead of directly in lib directory.
 * the /usr/local/lib/gdalplugins directory, and (if known) the lib/gdalplugins
                                        GDAL_PREFIX "/lib/gdalplugins" );
                                        "/usr/local/lib/gdalplugins" );
                                                   "lib/gdalplugins", NULL ) );

So it won't work if installed as /usr/lib/gdal_GRASS.so
(should be /usr/lib/gdalplugins/gdal_GRASS.so ?)

> G:user1 > gdalinfo --formats | grep -i GRASS
> G:user1 > 
> 
> So for some reason GDAL isn't seeing the plugin.
> 
> Same error in QGIS using all the latest debian+debianGIS packages when 
> loading a GRASS raster. GRASS vectors (e.g. bugsites) works fine.
> 
> libgdal1-grass    Version: 1.2.5-0.dgis.unstable.2
> libgdal1          Version: 1.2.6-1
> grass             Version: 6.0.0-1
> qgis-plugin-grass Version: 0.6.0-2.dgis.unstable.1
> 
> ?
> Hamish
> 

Hope this helps

 Markus




More information about the grass-dev mailing list