Skip to content

Commit

Permalink
adding ward map for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
geneorama committed Jun 27, 2017
1 parent 4300d53 commit 802aa44
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/21_create_features.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ noaa <- open_noaa_files(noaa_files)
wnv_original <- open_latest_wnv_file()
id_table <- readRDS("data/10_calculate_idtable.Rds")

ward_map <- readRDS("data/BoundariesWards.Rds")
ward_map <- readRDS("R/maps/BoundariesWards.Rds")

##------------------------------------------------------------------------------
## CALCULATE UNIQUE ID BASED ON TRAP, BLOCK, LAT/LON, AND TYPE
Expand Down
12 changes: 12 additions & 0 deletions R/maps/BoundariesWards.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
library(rgdal) #for reading/writing geo files
library(rgeos) #for simplification
library(sp)

## download here:
## https://data.cityofchicago.org/Facilities-Geographic-Boundaries/Boundaries-Wards-2015-/sp34-6z76/data

shp_ward <- readOGR(dsn = "data/BoundariesWardsUnzipped",
layer = "geo_export_80d799eb-95bc-4380-bdf8-f3621099ac6f",
stringsAsFactors = FALSE)
saveRDS(shp_ward, "data/BoundariesWards.Rds")

Binary file added R/maps/BoundariesWards.Rds
Binary file not shown.

0 comments on commit 802aa44

Please sign in to comment.