Parameterized insert query to PostGIS help

المشرف العام

Administrator
طاقم الإدارة
I am trying to insert into my database using the code below however I am having no luck. There is one post relating to what I am trying to do here

However he has had no replys and the code that works for him does not work in my case. Here is what I have so far.

otherlat = '51.69842'otherlng = '-0.70435'c.execute("INSERT INTO test(the_geog) VALUES(ST_GeographyFromText('SRID=4326;POINT('+(%s)+' '+(%s)+')'))", (otherlat, otherlng,)) conn.commit() conn.close() c.close()`

أكثر...
 
أعلى