[Qgis-user] Problem with adding a PostGIS query using Python

2012-06-27 Thread James Stott
I cannot seem to get this query to work. The python code I am using is: db_conn = "dbname=database' host=SERVER port=5432 user='postgres' password=''" id_field = "gid" table="(SELECT * FROM \"designations\".\"table\" WHERE ST_DWithin(ST_GeomFromText('POINT(4

Re: [Qgis-user] Problem with adding a PostGIS query using Python

2012-06-28 Thread Giuseppe Sucameli
Hi, there's already a open ticket about that problem, see [1]. Regards. [1] http://hub.qgis.org/issues/5883 -- Giuseppe Sucameli On Jun 27, 2012, at 6:33 PM, "James Stott" wrote: > I cannot seem to get this query to work. The python code I am using is: > > db_conn = "dbname=databas