Skip to contents

Read shapefile from any file or folder (trying to infer the format)

Usage

shapefile_from_any(
  path = NULL,
  cleanit = TRUE,
  crs = 4269,
  layer = NULL,
  inputname = NULL,
  silentinteractive = FALSE,
  ...
)

Arguments

path

path of file(s) that is/are .gdb, .zip, .shp, .kml, .geojson, .json, etc., or folder

cleanit

set to FALSE if you want to skip validation and dropping invalid rows

crs

passed to helper functions and default is crs = 4269 or Geodetic CRS NAD83

layer

optional layer name passed to sf::st_read()

inputname

vector of shiny fileInput uploaded filenames

silentinteractive

set to TRUE to NOT prompt for a file/folder when one is not specified

...

passed to sf::st_read()

Value

a simple feature sf::sf class spatial data.frame