I'm trying to create a buffer around a multi-linestring object with
Here's my initial attempt:
proj_sahel <- "+proj=aea +lat_1=9.71 +lat_2=22.58 +lon_0=2.81"
boundaries <- ne_download(scale = 10, category = "cultural", type = "admin_0_boundary_lines_land", returnclass = "sf")
buffer50 <- boundaries %>% filter(adm0_a3_l == "MLI" & adm0_a3_r %in% c("BFA", "NER")) %>%
st_transform(crs = proj_sahel) %>%
st_buffer(dist = 50000) %>%
I tried simplifying the geometry before and after
ms_simplify, it didn't make any difference. How can I avoid this or clean it after the fact?