Skip to content

Commit

Permalink
docs(ne_file_name.R): add comments explaining handling of parks and p…
Browse files Browse the repository at this point in the history
…rotected lands types
  • Loading branch information
PMassicotte committed Nov 19, 2024
1 parent 4da6945 commit a6f7cb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/ne_file_name.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ ne_file_name <- function(
type <- paste0("admin_0_", type)
}

# Different types such as area, line, etc. are all included within the same
# zip file for the parks and protected lands type. Therefore, we need to
# download the zip file and then select the
# appropriate shapefile to read.
if (type %in% c(
"parks_and_protected_lands_area",
"parks_and_protected_lands_line",
Expand All @@ -60,7 +64,6 @@ ne_file_name <- function(
type <- "parks_and_protected_lands"
}


# add admin_1 to known types
# this actually just expands 'states' to the name including lakes
if (type == "states") {
Expand Down

0 comments on commit a6f7cb0

Please sign in to comment.