save a shapefile to disk in the current working directory

saveShapefile(shape, mapId, dir = getwd(), overwrite = FALSE)

Arguments

shape

- the sf shape

mapId

- a mapId - will become the zip filename, and the filename of the zipped .shp file

dir

- the directory (defaults to current working directory)

overwrite

- the save function will not write over existing files unless this is set to true

Value

a the filename of the zipped shapefile