How can I get the coordinates of generated labels on Canvas? Or is there a way to make static labels for each feature? I want the labels to not move when the canvas changes scale or moves.
My situation: my plugin loads the pipelines (LineString) into memory layer. Label for the pipelines must be parallel and above the line. After first rendering of the canvas I need to remember the position of these labels. The ideal variant would be to get the x, y coordinates and angle of rotation of each labels and put them into additional fields of layer.
I'm interested in only stage of extraction of coordinates.