Advertisement
Guest User

Untitled

a guest
Jan 13th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. conn = psycopg2.connect(database='db', user='user', password='', host='100.200.3.40', port='5432')
  2. cur = conn.cursor()
  3. path2tif = "c:/temp/testRaster.tif"
  4. # how to convert from geotiff
  5. cur.execute("INSERT INTO schema.table (rast) VALUES ([converted geotiff]);")
  6. conn.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement