[STATSGRASS] Re: [R-sig-Geo] file format error with R and GRASS61
Kirk R. Wythers
kwythers at umn.edu
Thu Jan 19 16:22:03 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()
> getGDALDriverNames()
[1] "VRT" "GTiff" "NITF" "HFA" "SAR_CEOS" "CEOS"
[7] "ELAS" "AIG" "AAIGrid" "SDTS" "OGDI" "DTED"
[13] "PNG" "JPEG" "MEM" "JDEM" "GIF" "ESAT"
[19] "BSB" "XPM" "BMP" "AirSAR" "RS2"
"PCIDSK"
[25] "PCRaster" "ILWIS" "RIK" "GMT" "netCDF" "HDF4"
[31] "HDF4Image" "PNM" "DOQ1" "DOQ2" "ENVI" "EHdr"
[37] "PAux" "MFF" "MFF2" "FujiBAS" "GSC" "FAST"
[43] "BT" "LAN" "CPG" "IDA" "NDF"
"JPEG2000"
[49] "L1B" "FIT" "RMF" "USGSDEM" "GXF"
>
>
> say within R after loading the rgdal package, or equivalently
>
> $ gdalinfo --formats
the same
>
> from the shell prompt? If you see "GRASS" there, we have a problem, if
> not, please make sure the GDAL GRASS plugin
I thought I had this installed. You are talking about Frank's 1.3.1
version gdal, right?
I used the config options:
./configure --mandir=/usr/local/share/man --without-python --with-
threads --with
-static-proj4=/usr/local --with-libtiff=/usr/local --with-geotiff=/
usr/local --w
ith-jpeg=/usr/local --with-gif=/usr/local --with-png=/usr/local --
with-jasper=/u
sr/local --with-pg=/usr/local/pgsql/bin/pg_config --with-mysql=/usr/
local/mysql/
bin/mysql_config --with-netcdf=/Volumes/disk1/home1/kwythers/src/
netcdf-3.6.0-p1
--with-hdf4=/Volumes/disk1/home1/kwythers/src/HDF4.2r1/hdf4-darwin -
with-ogdi=/
usr/local --with-geos=/usr/local/bin/geos-config --with-grass=/usr/
local/grass-6
.1.cvs
> is installed and working (one
> does this *after* installing GRASS.
>
> 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