Skip to content

Instantly share code, notes, and snippets.

@mgahan
Created May 1, 2018 19:36
Show Gist options
  • Save mgahan/91bc895c5170fa41464889e784179901 to your computer and use it in GitHub Desktop.
Save mgahan/91bc895c5170fa41464889e784179901 to your computer and use it in GitHub Desktop.
Mapshaper Example
#mapshaper tl_2013_31_cousub.shp -simplify weighted 0.02% -o simplified.shp
library(rgdal)
library(sp)
before <- readOGR("tl_2013_31_cousub.shp")
after <- readOGR("simplified.shp")
plot(before)
plot(after)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment