Skip to content

Trouble with 'gdal_grid'

1 message · Jonathan Greenberg

#
Xavier:

It looks like gdalUtils is not finding your install of GDAL -- first
question, are you up to date with the latest gdalUtils?

gdalUtils will only look in "standard" locations for the installs -- if you
have your install in a non-standard location (easy to do with the OSGEO
installer, since you can set the install directory to wherever you want
it), then you can fix it the following two ways:

1) Brute force-- as the error above stated, if you run:
gdal_setInstallation(ignore.full_scan=FALSE)

It will do a brute force search for it on your computer.  This could take
awhile, since it is searching your entire hard drive for any and all valid
gdal installs (technically, it is looking for the folder with "gdalinfo" or
"gdalinfo.exe").

A faster step would be before you run gdal_grid to:
1) Manually search on your computer for "gdal_grid.exe" -- you need to know
what folder it is hiding in.
2) Run:
gdal_setInstallation(search_path="pathto/gdalexecutables",rescan=T)

Note that gdalUtils does NOT use rgdal's install -- rgdal doesn't contain
the executables typically, at any rate.

Hope this helps!  Please let me know if you are still having problems.  I'm
going to cc r-sig-geo in this email (with your contact info removed) so
there is a record of this suggestion.

--j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20160105/3fbd87f1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 4567 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20160105/3fbd87f1/attachment.gif>