# a vector resource
# requires GDAL >= 3.7.0
if (FALSE) {
vec <- system.file("shape/nc.shp", package = "sf")
make_footprints(vec, what = "vector")
}
# a raster resource
ras <- system.file("ex/elev.tif", package = "terra")
make_footprints(ras, what = "raster")
Run the code above in your browser using DataLab