(''' SELECT ST_X(a.geometry), ST_Y(a.geometry), a.name, a.node_id FROM my_table AS a WHERE Contains(Buffer(GeomFromText('POINT(%s %s)', 3857), %s), a.geometry) ''' % (var1, var2, var3)) Now my aim is, to get the buffer geometry and display it as a circle on my map, as well. Until now just the POIs around a certain distance are displayed, but I want to add a circle as a polygon based on the user given adress name, is there a way to do it in one query statement? Regards Tara | |
SELECT ST_Buffer(a.geometry,10) AS point_circle, ST_Envelope(ST_Buffer(a.geometry,10)) AS point_square;
Regards Tara