SELECT astext(the_geom) as the_geom, Contains(the_geom, centroid(the_geom)) as esta, id_geometria, id_lugar, tipo_geom, x(centroid(the_geom)) as centro_x, y(centroid(the_geom)) as centro_y FROM geometrias WHERE id_tipo=2 AND Contains(transform(GeomFromText('POLYGON(( , , , , ))',4326),4326), transform(the_geom, 4326)) AND id_pais=1 AND id_lugar <> '-1'{tours:[]}