From 87938b184a4dfe45ad451c727c3b0c09a8ecb5ba Mon Sep 17 00:00:00 2001 From: Steven Pousty Date: Fri, 17 May 2019 14:14:53 -0700 Subject: [PATCH] working on it (#28) * fixing some last moving over issues * fixing some last moving over issues (#27) (#1) * this is what I get for rushing --- postgis/qpostgisinto/env-init.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/postgis/qpostgisinto/env-init.sh b/postgis/qpostgisinto/env-init.sh index ca53e8c9..0d3e2036 100644 --- a/postgis/qpostgisinto/env-init.sh +++ b/postgis/qpostgisinto/env-init.sh @@ -5,11 +5,12 @@ docker run -d -p 5432:5432 -e PG_USER=groot -e PG_PASSWORD=password -e PG_DATABA wait 3 echo 'loading county boundaries' -PGPASSWORD="postgres" psql -h localhost -U groot -f /data/crunchy_demo_data/boundaries/county_boundaries.ddl.sql workshop -PGPASSWORD="postgres" psql -h localhost -U groot -d workshop -c '\COPY county_geometry (statefp, countyfp, countyns, geoid, county_name, namelsad, funcstat, aland, awater, interior_pnt, the_geom) from '\''/data/crunchy_demo_data/boundaries/county_boundaries_copy.txt'\'' WITH CSV QUOTE '\''"'\'' ' +PGPASSWORD="password" psql -h localhost -U groot -f /data/crunchy_demo_data/boundaries/county_boundaries.ddl.sql workshop +PGPASSWORD="password" psql -h localhost -U groot -d workshop -c '\COPY county_geometry (statefp, countyfp, countyns, geoid, county_name, namelsad, funcstat, aland, awater, interior_pnt, the_geom) from '\''/data/crunchy_demo_data/boundaries/county_boundaries_copy.txt'\'' WITH CSV QUOTE '\''"'\'' ' echo 'finished county boundaries' echo 'loading storm center points' -PGPASSWORD="postgres" psql -h localhost -U groot -f /data/crunchy_demo_data/storms/stormevents.ddl.sql workshop -PGPASSWORD="postgres" psql -h localhost -U groot -d workshop -c '\COPY se_locations (episode_id, event_id, location_index, range, azimuth, location, latitude, longitude, the_geom) from '\''/data/crunchy_demo_data/storms/storm_locations_copy.txt'\'' WITH CSV QUOTE '\''"'\'' ' +PGPASSWORD="password" psql -h localhost -U groot -f /data/crunchy_demo_data/storms/stormevents.ddl.sql workshop +PGPASSWORD="password" psql -h localhost -U groot -d workshop -c '\COPY se_locations (episode_id, event_id, location_index, range, azimuth, location, latitude, longitude, the_geom) from '\''/data/crunchy_demo_data/storms/storm_locations_copy.txt'\'' WITH CSV QUOTE '\''"'\'' ' + echo 'finished storm center points' \ No newline at end of file