I have a point feature that I would like to buffer to select segments that are within 15 meters of the point. The code I have is working but it's influenced by the map scale. Zooming in or out changes the buffer size. This is what I am using.
pntGeom = feature.geometry()
pntBuf = pntGeom.buffer(canvas.mapUnitsPerPixel()*15, 0)
is there a way to consistently buffer the point regardless of zoom level?