I have a postgis pointlayer in EPSG:3857, added to a project that is set up with OTF ON to project everything (other layers) to EPSG:3857. In postgis, I defined a view to dynamically create a buffer around the points, with a radius defined by an attribute:
CREATE VIEW point_buffer AS SELECT gid,st_buffer(the_geom,buf_radius) AS GEOM FROM points_layer
It creates the buffer correctly, but when I measure the radius of the buffer in qgis, it shows the buffer without taking the ellipsoid transformation into account. (when i measure the buffer radius with OTF OFF, it shows the correct radius)
Is there a way to have a buffer around a point be scaled to the ellipsoid?