You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

7 years ago
#!/bin/bash
set -e;
# per-source imports
function import_wof(){ compose_run 'whosonfirst' './bin/start'; }
function import_oa(){ compose_run 'openaddresses' './bin/start'; }
function import_osm(){ compose_run 'openstreetmap' './bin/start'; }
function import_polylines(){ compose_run 'polylines' './bin/start'; }
function import_transit(){ compose_run 'transit' './bin/start'; }
6 years ago
function import_csv(){ compose_run 'csv-importer' './bin/start'; }
7 years ago
register 'import' 'wof' '(re)import whosonfirst data' import_wof
register 'import' 'oa' '(re)import openaddresses data' import_oa
register 'import' 'osm' '(re)import openstreetmap data' import_osm
register 'import' 'polylines' '(re)import polylines data' import_polylines
register 'import' 'transit' '(re)import transit data' import_transit
6 years ago
register 'import' 'csv' '(re)import csv data' import_csv
7 years ago
# import all the data to be used by imports
# note: running importers in parallel can cause issues due to high CPU & RAM requirements.
function import_all(){
import_wof
import_oa
import_osm
import_polylines
import_transit
6 years ago
import_csv
7 years ago
}
register 'import' 'all' '(re)import all data' import_all