Description Usage Arguments Value Examples
Calculates a polygon layer with the footprints of raster images.
1 | footprints(x)
|
x |
A |
An sf
layer with the footprints (i.e., bounding box polygons) of the rasters
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Create sample files
file1 = tempfile(fileext = ".tif")
file2 = tempfile(fileext = ".tif")
file3 = tempfile(fileext = ".tif")
r1 = landsat[,1:100, 1:100,]
r2 = landsat[,101:200, 101:200,]
r3 = landsat[,21:40, 51:120,]
write_stars(r1, file1)
write_stars(r2, file2)
write_stars(r3, file3)
# Calculate footprints
files = c(file1, file2, file3)
pol = footprints(files)
pol
# Plot
plot(pol)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.