<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 Andrea,</p>
<p>There is now a new option that only draws the label if it fully fits inside the polygon: see <a href="https://github.com/qgis/QGIS/commit/dc4049ddff09cc1b324dd95f48df29abef92f90e">https://github.com/qgis/QGIS/commit/dc4049ddff09cc1b324dd95f48df29abef92f90e</a></p>
<p>so - this is part of the solution of what you want.</p>
<p>In my case I always want the label to be outside of the polygon, although in some rare cases the label may fit inside the polygon (when zoomed a lot).</p>
<p>Greetings,</p>
<p>Andreas</p>
<p>On 2015-07-19 16:47, aperi2007 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">Hi,<br /> Andreas<br /><br /> An option to put always a label outside from a polygon seem a good solution only when all the polygon are quite similar size (all small).<br /> Perhaps a better choice could be to have a label outside from a Polygon only when it is could not be all inside it ?<br /><br /> Andrea Peri.<br /><br /><br /> Il 19/⁠07/⁠2015 15:14, Andreas Neumann ha scritto:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi,<br /><br /> I see that there are some recent new features regarding labelling:<br /><br /><a href="https://github.com/qgis/QGIS/commit/388e4047a75d155be0e677866f80d7423937ea30">https://github.com/qgis/QGIS/commit/388e4047a75d155be0e677866f80d7423937ea30</a> and<br /><a href="https://github.com/qgis/QGIS/commit/3a44e294de08ee03c0386179693c61a3f76e5efe">https://github.com/qgis/QGIS/commit/3a44e294de08ee03c0386179693c61a3f76e5efe</a> I have a question regarding Nyalls recent labelling improvements (the new options to act as obstacle layers).<br /> For a polygon layer, would it be possible to force the labels to always label outside of the feature? As an example I have a waste-water layer with small polygons representing special-form manholes (irregularly shaped). These polygons are usually too small to properly display the label inside the polygon and I would prefer to automatically place the label fully outside of the polygon.<br /><br /> So, can I have a layer act both, as a label layer and as an obstacle layer? Or have another option, something like "Force label to be outside of the polygon", to label always outside of the polygon of the feature?<br /><br /> Here are two screenshots:<br /><br /> This is how QGIS currently labels these polygons:<br /><a href="http://www.carto.net/neumann/temp/qgis_label_over_polygon.pdf">http://www.carto.net/neumann/temp/qgis_label_over_polygon.pdf</a><br /><br /> And this is how I would label them manually, outside of the polygon, but hope that a future QGIS version can do this automatically:<br /><a href="http://www.carto.net/neumann/temp/manual_label_outside_polygon.pdf">http://www.carto.net/neumann/temp/manual_label_outside_polygon.pdf</a><br /><br /> Thanks,<br /> Andreas<br /><br /><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>