[STATSGRASS] Re: [R-sig-Geo] file format error with R and GRASS61

Kirk R. Wythers kwythers at umn.edu
Thu Jan 19 16:30:40 EST 2006


On Jan 19, 2006, at 3:06 PM, Roger Bivand wrote:

> On Thu, 19 Jan 2006, Kirk R. Wythers wrote:
>
>> I am trying to figure out an GDAL error message about grass file not
>> being a supported format. The message is:
>>
>>> gmeta6 <- gmeta6()
>>> fname <- paste(gmeta6$GISDBASE, gmeta6$LOCATION_NAME,
>> + "PERMANENT", "cellhd", "soils.ph",
>> + sep="/")
>>> soilsph_GDAL <- read.GDAL(fname)
>> Error in .local(.Object, ...) :
>>          GDAL Error 4: `~/grassdata/spearfish60/PERMANENT/cellhd/
>> soils.ph' not recognised as a supported file format.
>
> If r.out.gdal works for you on that file, then we have a problem.  
> However,
> I think that your GRASS GDAL plugin is not present, so GDAL doesn't  
> know
> how to read GRASS rasters natively. What does
>
>> getGDALDriverNames()
>
> say within R after loading the rgdal package, or equivalently
>
> $ gdalinfo --formats
>
> from the shell prompt? If you see "GRASS" there, we have a problem, if
> not, please make sure the GDAL GRASS plugin is installed and  
> working (one
> does this *after* installing GRASS.

That was it Roger. Thanks. I was sure that I had the plugin  
installed, but after rebuilding gdal-withgrass and reinstalling,  
read.GDAL ran just fine.


>
> Roger
>
>>
>> This is on grass61 and R 2.2.1 using the spearfish60 location
>>
>> Thanks in advance for any ideas
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
> -- 
> Roger Bivand
> Economic Geography Section, Department of Economics, Norwegian  
> School of
> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
> e-mail: Roger.Bivand at nhh.no
>




More information about the grass-stats mailing list