scl3/task_hii_osm_csv
58
SERVICE_ACCOUNT_KEY=<GOOGLE SERVICE ACCOUNT KEY>
MIN_GEOM_AREA = 5 # in meters
POLYGON_PRECISION = 5
MAX_ROWS = 1000000
DEFAULT_BUCKET = os.environ.get("HII_OSM_BUCKET", "hii-osm")
All parameters may be specified in the environment as well as the command line.
/app # python task.py --help
usage: task.py [-h] [-d TASKDATE] [--overwrite] [-f OSM_FILE] [-u OSM_URL]
[--osmium_text_file OSMIUM_TEXT_FILE] [-w WORKING_DIR]
[--extent EXTENT] [--backup_step_data]
[--osmium_config OSMIUM_CONFIG] [--no_roads]
optional arguments:
-h, --help show this help message and exit
-d TASKDATE, --taskdate TASKDATE
--overwrite overwrite existing outputs instead of incrementing
(default: False)
-f OSM_FILE, --osm_file OSM_FILE
Add local path to OSM source file. If not provided,
file will be downloaded (default: None)
-u OSM_URL, --osm_url OSM_URL
Set a different source url to download OSM pbf file.
(default: None)
--osmium_text_file OSMIUM_TEXT_FILE
Text file created from osmium export. (default: None)
-w WORKING_DIR, --working_dir WORKING_DIR
Working directory to store files and directories
during processing. (default: None)
--extent EXTENT Output geographic bounds. (default: None)
--backup_step_data Backup up osm to text file to Google Cloud Storage
(default: False)
--osmium_config OSMIUM_CONFIG
osmium config file (default: None)
--no_roads save out separate roads csv (default: False)
Copyright (C) 2022 Wildlife Conservation Society The files in this repository are part of the task framework for calculating Human Impact Index and Species Conservation Landscapes (https://github.com/SpeciesConservationLandscapes) and are released under the GPL license: https://www.gnu.org/licenses/#GPL See LICENSE for details.
docker pull scl3/task_hii_osm_csv