Advertisement
Guest User

Untitled

a guest
Jan 26th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -x
  4.  
  5. impconnection=postgis://$PGHOST/$PGDATABASE
  6. monaco_osm_pbf=./parser/pbf/monaco-20150428.osm.pbf
  7. mapping_file=./test/single_table_mapping.json
  8.  
  9. function import {
  10. /go/src/github.com/omniscale/imposm3/imposm3 import -mapping $mapping_file \
  11. -read $monaco_osm_pbf \
  12. -write \
  13. -overwritecache \
  14. -connection $impconnection
  15. }
  16.  
  17. function dbtest {
  18. psql -c 'select current_user;'
  19. psql -c '\dn'
  20. psql -c 'select schema_name from information_schema.schemata ;'
  21. }
  22.  
  23.  
  24. PGUSER=postgres PGPASSWORD= import
  25. echo " --------- osm pguser ------------- "
  26. PGUSER=osm PGPASSWORD=osm import
  27.  
  28. PGUSER=postgres PGPASSWORD= dbtest
  29. echo " --------- osm pguser ------------- "
  30. PGUSER=osm PGPASSWORD=osm dbtest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement