<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Nyall,</p>
<p>I would be fine with limiting to the 8 "well-known" positions, with the priorities mentioned at <a href="http://www.svgopen.org/2002/papers/dahinden__good_map_graphics/labeling.png">http://www.svgopen.org/2002/papers/dahinden__good_map_graphics/labeling.png</a> set as default and different distances depending on the position - perhaps with a good default distance for each position, so normal users wouldn't have to tweak these values and still receive good out of the box results.</p>
<p>I wasn't aware that I can bump up the candidates and I doubt this is in much use out in the wild.</p>
<p>Thanks,<br />Andreas</p>
<p>On 2015-07-20 12:59, Nyall Dawson wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On 19 July 2015 at 23:30, Andreas Neumann <<a href="mailto:a.neumann@carto.net">a.neumann@carto.net</a>> wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi,<br /><br /> I have another label question:<br /><br /> For labeling point features when using the "Around point" placement option,<br /> I noticed that I would need different label distances depending on the<br /> position the automatic labelling engine uses. As an example, while the label<br /> distance is ok for a "top-right" position, it would have to be bigger for a<br /> "right" position, as the label is still too close to the point symbol in<br /> this case. The top-middle and bottom-middle positions would also need yet<br /> another label distance.<br /><br /> Would it be possible to add position-dependent label offsets in the future<br /> while still letting QGIS place the labels automatically?</blockquote>
<br /> I've hit this recently too, but I'm not sure what the best solution<br /> is. There's a few complications. The biggest is that the "around<br /> point" mode actually places candidates in a circular radius around<br /> point features. By default QGIS is set to use 8 candidates for point<br /> features, so the result is that labels are placed in the 8 quadrants<br /> around points (above, top right, right, bottom right, etc...). But if<br /> someone has bumped up the number of candidates, then the labels will<br /> no longer fall on these quadrants and instead be placed at say 10<br /> degrees, 20 degrees, etc. In this case the position dependant<br /> distances become much more complicated.<br /><br /> I've been thinking about changing how "around point" works to<br /> basically hard-code in the 8 candidates, so that labels will ALWAYS<br /> fall on the 8 corner/mid points. I'm not sure how many people would be<br /> negatively affected by this (ie, how many people intentionally change<br /> the number of candidates), but there's a number of benefits which<br /> would arise. One would be that we could prioritise certain placements<br /> - eg, following this [<a href="http://www.svgopen.org/2002/papers/dahinden__good_map_graphics/labeling.png">1</a>] kind of priority for placements. This could<br /> even be configurable by the user. Another benefit would be that we<br /> could tweak the relative distances for each placement too.<br /><br /> Anyone have any thoughts on this?<br /><br /> Nyall<br /><br /><br /> [1] <a href="http://www.svgopen.org/2002/papers/dahinden__good_map_graphics/labeling.png">http://www.svgopen.org/2002/papers/dahinden__good_map_graphics/labeling.png</a><br /><br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br /> Thanks,<br /> Andreas<br /> _______________________________________________<br /> Qgis-developer mailing list<br /><a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br /><a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
</blockquote>
<p> </p>
<div> </div>
</body></html>