<div dir="ltr">Hi! <div><br></div><div>I submitted a bunch of QEP on that topic, if you have customers interested to go ahead, we probably should mutualize things there and seek for common budgets too. <br></div><div>What makes sense to me is that Callouts connectors make sense when labels have been manually moved, not much for automated placement. If you let PAL use "around point", then you will draw random lines in all directions, which is not nice on screen. </div><div>If you align all labels using a corner placement option, then I think you can compute easily the offset XY from centroid also. </div><div><br></div><div>What my plugin does for custom labeling is that it takes profit of the pin/unpin buttons which writes the PAL computed to the XY columns.</div><div><br></div><div>Good news, I ported the plugin to QGIS3 at the hackfest, it's now in the repo and here:</div><div> <a href="https://github.com/haubourg/EasyCustomLabeling/blob/qgis3_port/EasyCustomLabeling/EasyCustomLabeling.py">https://github.com/haubourg/EasyCustomLabeling/blob/qgis3_port/EasyCustomLabeling/EasyCustomLabeling.py</a></div><div><br></div><div>Feel free to submit a PR to replace the Line Label layer by a pure copy of the source layer, and replace lines by a geometry generator (I wish I had time for it)</div><div><br></div><div>Régis</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-04 14:39 GMT+02:00 kimaidou <span dir="ltr"><<a href="mailto:kimaidou@gmail.com" target="_blank">kimaidou@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi QGIS !<br><br></div>I am playing with data-defined label position, with 2 column label_x and label_y.<br></div>I use a geometry generator to draw the line between the label and the feature centroid, like<br><br></div>make_line(<br></div>  centroid( $geometry ),<br></div>  make_point( "label_x", "label_y" )<br>)<br><br></div>It work pretty well (with some rectangle background under the label text), but it is obviously only active when the label_x and label_y fields are not NULL ( when the label is pinned )<br><br></div>I would like to draw this line for any features (perhaps depending on this line length). So basically, I would need 2 new functions $x_label and $y_label.<br><br></div>Anyone has tried to achieve this ?<br><br></div>Cheers,<br></div>Michaël<br></div>
<br>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br></div>