# NOT RUN {
res <- mr_geojson(key = "Morocco:dam")
mr_as_wkt(res)
# shp files
## path to wkt
mr_as_wkt(mr_shp(key = "Morocco:dam", read = FALSE))
## spatial object to wkt
mr_as_wkt(mr_shp(key = "Morocco:dam", read = TRUE))
# }
Run the code above in your browser using DataLab