gdal_chooseInstallation: gdal_chooseInstallation

Description Usage Arguments Details Value Author(s) References Examples

View source: R/gdal_chooseInstallation.R

Description

Choose a GDAL installation based on certain requirements.

Usage

1

Arguments

hasDrivers

Character. Which drivers must be available?

Details

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.

Value

Numeric id of the most recent installation that matches the requirements.

Author(s)

Jonathan A. Greenberg (gdalUtils@estarcion.net)

References

http://www.gdal.org/gdal_translate.html

Examples

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)

gdalUtils documentation built on Feb. 14, 2020, 1:08 a.m.