powered by
Returns the GDAL_METADATA XML string (TIFF tag 42112) embedded in a GeoTIFF file. Returns NA if the tag is not present.
NA
tiff_metadata(path)
A single character string containing the XML, or NA_character_.
NA_character_
Path to a GeoTIFF file.
# \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 = "") tiff_metadata(f) unlink(f) # }
Run the code above in your browser using DataLab