Downloads the Global Self-consistent, Hierarchical, High-resolution
Geography (GSHHG) shoreline v2.3.7 (about 150 MB, once) and unzips the
land polygons (level 1) at the chosen resolution. The result is the
land layer of filter_layers() for the at_sea test. Any other land
polygon file (e.g. OpenStreetMap land polygons) works too.
References
Wessel, P., Smith, W.H.F. (1996) A global, self-consistent, hierarchical, high-resolution shoreline database. Journal of Geophysical Research 101, 8741-8743.
Examples
if (FALSE) { # \dontrun{
land <- download_shoreline("data/coast")
lay <- filter_layers(land = land)
} # }
