Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -x
- impconnection=postgis://$PGHOST/$PGDATABASE
- monaco_osm_pbf=./parser/pbf/monaco-20150428.osm.pbf
- mapping_file=./test/single_table_mapping.json
- function import {
- /go/src/github.com/omniscale/imposm3/imposm3 import -mapping $mapping_file \
- -read $monaco_osm_pbf \
- -write \
- -overwritecache \
- -connection $impconnection
- }
- function dbtest {
- psql -c 'select current_user;'
- psql -c '\dn'
- psql -c 'select schema_name from information_schema.schemata ;'
- }
- PGUSER=postgres PGPASSWORD= import
- echo " --------- osm pguser ------------- "
- PGUSER=osm PGPASSWORD=osm import
- PGUSER=postgres PGPASSWORD= dbtest
- echo " --------- osm pguser ------------- "
- PGUSER=osm PGPASSWORD=osm dbtest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement