Upload a shapefile

uploadPolygonUI(id)

uploadPolygon(input, output, session, authStatus, userDir, studyArea)

Arguments

id

An id string that corresponds with the id used to call the module's UI function.

input

shiny server input object

output

shiny server output object

session

shiny server session object

authStatus

Logical indicating whether a user can upload files.

userDir

User-specific directory in which to store uploaded files.

studyArea

A Spatial object used as a template for postprocessing the uploaded polygon, which is cropped, reprojected, etc. to match studyArea. See postProcess.

Value

Reactive object containing the uploaded polygon.