brokenspoke_analyzer.core.runner module

Define helper function to run external commands.

brokenspoke_analyzer.core.runner.run(cmd)

Run a command and log the stdout/stderr at the trace level.

Return type:

None

brokenspoke_analyzer.core.runner.run_analysis(state_abbrev, state_fips, city_shp, pfb_osm_file, output_dir, docker_image, container_name=None, city_fips=None)

Run a BNA analysis.

Return type:

None

brokenspoke_analyzer.core.runner.run_docker_info()

Return a dict containing Docker system information.

Return type:

Any

brokenspoke_analyzer.core.runner.run_ogr2ogr_geojson_export(database_url, filename, table)

Dump a table into a GeoJSON file.

Return type:

None

brokenspoke_analyzer.core.runner.run_osm2pgrouting(database_url, schema, prefix, configuration_file, osm_file)

Import OSM data into pgRouting.

Return type:

None

brokenspoke_analyzer.core.runner.run_osm2pgsql(database_url, output_srid, style_file, osm_file, number_processes=0, prefix='neighborhood_osm_full')

Import OSM data into PostGIS.

Return type:

None

brokenspoke_analyzer.core.runner.run_osm_convert(osm_file, bbox)

Convert OSM data.

Return type:

Path

brokenspoke_analyzer.core.runner.run_osmium_extract(polygon_file_path, region_file_path, reduced_file_path)

Reduce the OSM file to the boundaries with OSMium.

Return type:

None

brokenspoke_analyzer.core.runner.run_pgsql2shp(database_url, filename, table)

Dump a PostGIS table into a shapefile.

Return type:

None

brokenspoke_analyzer.core.runner.run_psql_command_string(database_url, command)

Execute a one command string, command, and then exit.

Return type:

None