Hi Andrea, 

There is now a new option that only draws the label if it fully fits
inside the polygon: see
https://github.com/qgis/QGIS/commit/dc4049ddff09cc1b324dd95f48df29abef92f90e
[6] 

so - this is part of the solution of what you want. 

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). 

Greetings, 

Andreas 

On 2015-07-19 16:47, aperi2007 wrote: 

> Hi,
> Andreas
> 
> 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).
> Perhaps a better choice could be to have a label outside from a Polygon only 
> when it is could not be all inside it ?
> 
> Andrea Peri.
> 
> Il 19/⁠07/⁠2015 15:14, Andreas Neumann ha scritto: 
> 
>> Hi,
>> 
>> I see that there are some recent new features regarding labelling:
>> 
>> https://github.com/qgis/QGIS/commit/388e4047a75d155be0e677866f80d7423937ea30 
>> [1] and
>> https://github.com/qgis/QGIS/commit/3a44e294de08ee03c0386179693c61a3f76e5efe 
>> [2] I have a question regarding Nyalls recent labelling improvements (the 
>> new options to act as obstacle layers).
>> 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.
>> 
>> 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?
>> 
>> Here are two screenshots:
>> 
>> This is how QGIS currently labels these polygons:
>> http://www.carto.net/neumann/temp/qgis_label_over_polygon.pdf [3]
>> 
>> And this is how I would label them manually, outside of the polygon, but 
>> hope that a future QGIS version can do this automatically:
>> http://www.carto.net/neumann/temp/manual_label_outside_polygon.pdf [4]
>> 
>> Thanks,
>> Andreas
>> 
>> _______________________________________________
>> Qgis-⁠developer mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer [5]

 

Links:
------
[1]
https://github.com/qgis/QGIS/commit/388e4047a75d155be0e677866f80d7423937ea30
[2]
https://github.com/qgis/QGIS/commit/3a44e294de08ee03c0386179693c61a3f76e5efe
[3] http://www.carto.net/neumann/temp/qgis_label_over_polygon.pdf
[4] http://www.carto.net/neumann/temp/manual_label_outside_polygon.pdf
[5] http://lists.osgeo.org/mailman/listinfo/qgis-developer
[6]
https://github.com/qgis/QGIS/commit/dc4049ddff09cc1b324dd95f48df29abef92f90e
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to