This function provides an interface mirroring that of the GDAL
command-line app gdalinfo
. For a description of the
utility and the arguments that it takes, see the documentation at
https://gdal.org/programs/gdalinfo.html.
gdalinfo(
datasetname,
...,
json,
mm,
stats,
approx_stats,
hist,
nogcp,
nomd,
norat,
noct,
nofl,
checksum,
proj4,
listmdd,
mdd,
wkt_format,
sd,
oo,
IF,
dryrun = FALSE,
config_options = character(0),
quiet = FALSE
)
Silently returns a character vector containing the information returned by the gdalinfo utility.
Path to a GDAL-supported readable datasource.
Here, a placeholder argument that forces users to supply exact names of all subsequent formal arguments.
See the GDAL project's gdalinfo documentation for details.
See the GDAL project's gdalinfo documentation for details.
Logical (default FALSE
). If TRUE
,
instead of executing the requested call to GDAL, the function
will print the command-line call that would produce the
equivalent output.
A named character vector with GDAL config
options, of the form c(option1=value1, option2=value2)
. (See
here for a
complete list of supported config options.)
Logical (default FALSE
). If TRUE
,
suppress printing of output to the console.
Joshua O'Brien
ff <- system.file("extdata/maunga.tif", package = "gdalUtilities")
gdalinfo(ff)
Run the code above in your browser using DataLab