R/writers.R

saveShapefile <- function(shape, directory, layerName) {
  rgdal::writeOGR(shape, directory, layerName, driver="ESRI Shapefile")
}

saveGeojson <- function(shape, filepath) {
  rgdal::writeOGR(shape, filepath, "OGRGeoJSON", driver="GeoJSON")
}
filipstachura/rappsilon documentation built on May 16, 2019, 12:53 p.m.