Guest User

Untitled

a guest
Jan 10th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ogr2ogr -f "PostgreSQL" PG:"host=hosting_url port=5432 dbname=database_name user=username password=password" -lco SCHEMA=schema_name "D:dataData.gdb" -overwrite -progress -lco OVERWRITE=YES --config PG_USE_COPY YES
  2.  
  3. import os, subprocess
  4. command = ["C:\Program Files\QGIS 2.18\bin\ogr2ogr.exe",
  5. "-f", "PostgreSQL", "PG:"host=hosting_url port=5432 dbname=database_name user=username password=password"", "-lco", "SCHEMA=schema_name", "D:dataData.gdb", "-overwrite", "-progress", "-lco", "OVERWRITE=YES", "--config", "PG_USE_COPY", "YES"]
Add Comment
Please, Sign In to add comment