healthyregions / oeps

Opioid Environment Policy Scan - data explorer and backend management
https://oeps.healthyregions.org
GNU General Public License v3.0
1 stars 0 forks source link

9 create load workflow #11

Closed mradamcox closed 1 year ago

mradamcox commented 1 year ago

Initial design and implementation of a workflow for loading datasets directly to Google BigQuery. A new script, bq_load.py must be passed a table definition file, from which it will

  1. create a new dataset (if needed) and table from provided schema
  2. load the dataset, shapefile or CSV, from the data source provided in the table definition

This pull request also includes four table definitions for the 2018 shapefiles (states, counties, zip code tabulation areas, and census tracts) that were included in the v1 release of OEPS.

All four tables load into BigQuery, but for one row in the counties shapefile that seems to error (all other counties load properly though).

closes #9