Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- insert(id, Height, X, Y)
- ....
- def insert(gid,height, X, Y):
- gid=str(gid)
- connection = psycopg2.connect(host='', dbname='postgres', user='', password='')
- cur = connection.cursor()
- cur.execute ("""INSERT INTO gronkarta.test5 (gid, height, geom) VALUES (""" + gid + """,""" + str(height) + ""","""+ST_GeomFromText('POINT(X Y)', 3008)+""");""")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement