Project

General

Profile

1 11351 aaronmk
#!/bin/bash -e
2
# exports the geoscrub table
3
. "$(dirname "${BASH_SOURCE[0]}")"/../../../lib/runscripts/util.run
4
.rel ../../../lib/sh/local.sh
5
6
if self_not_included; then
7
8
make() # usage: rm=1 .../self.run make
9
{
10
	echo_func; require_remote
11 11364 aaronmk
	local_export database=geoscrub table=geoscrub \
12
cols='decimallatitude,decimallongitude,country,stateprovince,county,countrystd'\
13
',stateprovincestd,countystd,latlonvalidity,countryvalidity,'\
14
'stateprovincevalidity,countyvalidity' # str b/c env vars don't support arrays
15
	to_top_file pg_as_root pg_export # runtime: 30 s ("0m30.352s")
16 11351 aaronmk
}
17
18 11364 aaronmk
# upload time: 1.5 min ("0:01:17")
19
20 11351 aaronmk
all() # usage: rm=1 .../self.run
21
{
22
	echo_func
23
	make
24
}
25
26
fi