Description Usage Arguments Details Value Author(s) References Examples
View source: R/gdal_chooseInstallation.R
Choose a GDAL installation based on certain requirements.
1 | gdal_chooseInstallation(hasDrivers)
|
hasDrivers |
Character. Which drivers must be available? |
By default, the GDAL commands will use the installation found at getOption("gdalUtils_gdalPath")[[1]], which is the most recent version found on the system. If the user has more than one GDAL installed (more common on Windows and Mac systems than *nix systems), gdal_chooseInstallation can be used to choose an installation (perhaps not the most recent one) that has certain functionality, e.g. supports HDF4 formatted files.
Numeric id of the most recent installation that matches the requirements.
Jonathan A. Greenberg (gdalUtils@estarcion.net)
http://www.gdal.org/gdal_translate.html
1 2 3 4 5 6 7 8 | ## Not run:
# Choose the best installation that has both HDF4 and HDF5 drivers:
gdal_chooseInstallation(hasDrivers=c("HDF4","HDF5"))
# Get the version of this installation:
getOption("gdalUtils_gdalPath")[[
gdal_chooseInstallation(hasDrivers=c("HDF4","HDF5"))]]$version
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.