get_input_polygons: Get the polygons for a set of locations defined by...

Description Usage Arguments Value

View source: R/geospatial_data_loading.R

Description

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

Usage

1
2
3
4
5
6
7
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


hrvg/RiverML documentation built on Oct. 12, 2020, 10:40 a.m.