Skip to content

Commit efefdf1

Browse files
committed
Update chap_districts
1 parent 22746c5 commit efefdf1

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* Update `mta_bus_stops` to use current winter 2023 service data and correct issue with frequency variable where stops with frequent service had not been identified as such.
1414
* Update `baltimore_water` data (2023-11-08) to add an acres column and fill in the name column based on intersections with the `mapmaryland::md_water` data.
1515
* Update `inspire_plans` to add `program_numbers` column (2024-03-29).
16+
* Update `chap_districts` (2024-09-21) with addition of Sarah Ann CHAP District.
1617

1718
## New or modified functions
1819

R/data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,9 +1129,9 @@
11291129
#' Historic districts designated by the [Baltimore City Commission on Historical
11301130
#' and Architectural Preservation](https://chap.baltimorecity.gov/) (CHAP) which
11311131
#' is the local historic preservation office for Baltimore City, Maryland.
1132-
#' Updated 2023 February 10.
1132+
#' Updated 2024-09-21.
11331133
#'
1134-
#' @format A data frame with 39 rows and 7 variables:
1134+
#' @format A data frame with 40 rows and 7 variables:
11351135
#' \describe{
11361136
#' \item{`name`}{Historic district name}
11371137
#' \item{`contact_name`}{CHAP Staff contact name}

data-raw/data.R

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,6 +1487,22 @@ buildings_21stc <- buildings_21stc |>
14871487
usethis::use_data(buildings_21stc, overwrite = TRUE)
14881488

14891489

1490+
middle_branch <- bind_rows(
1491+
get_baltimore_area(
1492+
"neighborhood",
1493+
location = getdata::get_location(adopted_plans, "South Baltimore Gateway Master Plan", name_col = "plan_name")
1494+
),
1495+
get_baltimore_area(
1496+
"neighborhood",
1497+
c("Brooklyn", "Curtis Bay", "Locust Point")
1498+
)
1499+
) |>
1500+
sfext::st_union_ext() |>
1501+
mutate(
1502+
plan_name = "Reimagine Middle Branch",
1503+
plan_area_label = "Reimagine Middle Branch Study Area"
1504+
)
1505+
14901506
adopted_plans_path <-
14911507
# FIXME: The original link for this data no longer works but the new data is missing key information
14921508
# "https://geodata.baltimorecity.gov/egis/rest/services/Planning/Boundaries_and_Plans/MapServer/72"
@@ -2101,12 +2117,15 @@ chap_district_info <- tibble::tribble(
21012117
"Washington Hill", "http://chap.baltimorecity.gov/washington-hill", FALSE, TRUE,
21022118
"Waverly", "http://chap.baltimorecity.gov/waverly", FALSE, FALSE,
21032119
"Woodberry", "http://chap.baltimorecity.gov/woodberry", FALSE, TRUE,
2104-
"Wyndhurst", "http://chap.baltimorecity.gov/wyndhurst", FALSE, FALSE
2120+
"Wyndhurst", "http://chap.baltimorecity.gov/wyndhurst", FALSE, FALSE,
2121+
"Sarah Ann Street", "https://chap.baltimorecity.gov/sarah-ann-street", FALSE, FALSE
21052122
)
21062123

21072124

21082125
chap_districts <- chap_districts_geodata |>
2109-
dplyr::filter(stringr::str_detect(cha_pcode_ty, "^A")) |>
2126+
janitor::remove_empty("cols") |>
2127+
select(!url) |>
2128+
dplyr::filter(stringr::str_detect(cha_pcode, "^A")) |>
21102129
sfext::rename_sf_col() |>
21112130
dplyr::rename(name = area_name) |>
21122131
dplyr::mutate(
@@ -2115,10 +2134,11 @@ chap_districts <- chap_districts_geodata |>
21152134
name == "Eutaw Place/Madison Place" ~ "Eutaw Place/Madison Park",
21162135
name == "Mt. Royal Terrace" ~ "Mount Royal Terrace",
21172136
name == "Wilkens Avenue" ~ "Mill Hill/Deck of Cards",
2137+
name == "Sarah Ann" ~ "Sarah Ann Street",
21182138
.default = name
21192139
)
21202140
) |>
2121-
dplyr::left_join(chap_district_info, by = "name") |>
2141+
dplyr::left_join(chap_district_info, by = dplyr::all_of("name")) |>
21222142
dplyr::mutate(
21232143
acres = as.numeric(units::set_units(sf::st_area(geometry), "acres"))
21242144
) |>

data/chap_districts.rda

100 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)