CMAP-REPOS / cmapgeo

R-friendly geodata for the Chicago region
https://cmap-repos.github.io/cmapgeo/
Other
7 stars 0 forks source link

To-Add list of geodata #1

Closed nmpeterson closed 3 years ago

nmpeterson commented 3 years ago

Add the following geographic boundaries to the package, using scripts in data-raw that create .rda files in data.


Also for consideration:

dlcomeaux commented 3 years ago

IDOT regions would make sense as a county attribute, I don't think that needs to be its own shapefile if it's captured like that.

dlcomeaux commented 3 years ago

A few thoughts:

dlcomeaux commented 3 years ago

And if we do include larger lists of tracts/block groups/PUMAs, I would definitely advocate for including a flag for CMAP region - otherwise, I think we lose the value of those shapefiles.

nmpeterson commented 3 years ago

@dlcomeaux yes, adding a CMAP region flag was always my intention for any dataset extending beyond the region, similar to what's already in zone_sf and subzone_sf. Regarding the townships, I assume you're referring to the political townships and not the PLSS townships?

dlcomeaux commented 3 years ago

@nmpeterson yes, the political townships - this came up for me on an analysis of infrastructure investment distribution. It's a less common need, but it does serve some purpose (particularly since they control some roadways).

matthewstern commented 3 years ago

I really liked the way you did the county vectors as differentiated objects that can be easily accessed as a whole list as well. Have you thought about whether it would be feasible to do something similar with geographies, that would allow the user to define what selection they wanted?

Seems like one option would be to include super basic helper functions that filter internal datasets, e.g. tracts("cmap"), tracts("modeling"), etc.

EDIT: Maybe I'm barking up entirely the wrong tree here, but theoretically, all the spatial data in the package could be internal and accessed via a function like cmap_spatial_data(dataset = "tracts", extent = "cmap7"), with convenience wrappers like tracts(extent = "cmap7"). This could allow the package to develop in the future into something more complex, e.g. something capable of not downloading all the data when you install the package, but caching data locally after it's called for once (I think tidycensus does something like this).

nmpeterson commented 3 years ago

Counties (modeling area + MSA combined) and IDOT districts (with IDOT region attribute) have been added.

@dlcomeaux does this format for the IDOT data work for you?

dlcomeaux commented 3 years ago

@nmpeterson yes that works great for what I was imagining. Thanks!

nmpeterson commented 3 years ago

Closing for now. Will reopen if there is demand for additional geographies.