Get the polygons for a set of locations defined by input_data and n

get_input_polygons(
  input_data,
  n,
  DEM,
  .dl = 25,
  .crs = sp::CRS("+proj=longlat +datum=WGS84")
)

Arguments

input_data

a data.frame with columns lon and lat

n

numeric the indices of the rows of input_data to use

DEM

a raster object

.dl

a number of pixel added in all direction to the coordinates of the i-th point in order to create a square tile

.crs

a sp::CRS, usually the one from the DEM to be tiled

Value

a list of SpatialPolygon