% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tbl.R
\name{tiff_metadata}
\alias{tiff_metadata}
\title{Read GDAL_METADATA from a GeoTIFF}
\usage{
tiff_metadata(path)
}
\arguments{
\item{path}{Path to a GeoTIFF file.}
}
\value{
A single character string containing the XML, or \code{NA_character_}.
}
\description{
Returns the GDAL_METADATA XML string (TIFF tag 42112) embedded in a
GeoTIFF file. Returns \code{NA} if the tag is not present.
}
\examples{
\donttest{
f <- tempfile(fileext = ".tif")
df <- data.frame(x = 1:4, y = rep(1:2, each = 2), band1 = as.double(1:4))
write_tiff(df, f, metadata = "<GDALMetadata></GDALMetadata>")
tiff_metadata(f)
unlink(f)
}

}
