pudl.convert.censusdp1tract_to_sqlite

Convert the US Census DP1 ESRI GeoDatabase into an SQLite Database.

This is a thin wrapper around the GDAL ogr2ogr command line tool. We use it to convert the Census DP1 data which is distributed as an ESRI GeoDB into an SQLite DB. The module provides ogr2ogr with the Census DP 1 data from the PUDL datastore, and writes the output into the output directory indicated by the $PUDL_OUTPUT environment variable alongside the FERC and PUDL SQLite databases.

Attributes

Functions

raw_censusdp1tract__all_tables(context)

Use GDAL's ogr2ogr utility to convert the Census DP1 GeoDB to an SQLite DB.

Module Contents

pudl.convert.censusdp1tract_to_sqlite.logger[source]
pudl.convert.censusdp1tract_to_sqlite.raw_censusdp1tract__all_tables(context)[source]

Use GDAL’s ogr2ogr utility to convert the Census DP1 GeoDB to an SQLite DB.

The Census DP1 GeoDB is read from the datastore, where it is stored as a zipped archive. This archive is unzipped into a temporary directory so that ogr2ogr can operate on the ESRI GeoDB, and convert it to SQLite. The resulting SQLite DB file is put in the PUDL output directory alongside the ferc1 and pudl SQLite databases.

Returns:

None