[Qgis-user] Geometries of labels - automatic positioning (no covering)

silvio.bentzien silvio.bentzien at protonmail.com
Fri Feb 12 03:20:30 PST 2021


Hey Matej,

I think they are referring to the checkbox under Layer Styling -> Labels -> Rendering Tab -> "Show all labels for this layer (including colliding ones)".

See this image: https://i.imgur.com/Tifx1FC.png


greetings,
silvio

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, February 9, 2021 1:29 PM, Matej Mailing <mailing at tam.si> wrote:

> Hello Regis,
>
> I cannot find that option you mention: "the placement option "always
> displays" on the layers"
>
> I seem to have checked all the options - I am using QGIS 3.16.3.
>
> Thanks,
> Matej
>
> V V pet., 5. feb. 2021 ob 15:20 je oseba Régis Haubourg
> regis.haubourg at gmail.com napisala:
>
> > Back on the mailing list.
> > mm, so you want to force labels on all features right, especially on
> > crowded locations?
> > Did you try the placement option "always displays" on the layers you
> > want to force?
> > I you get a screenshot, that would help
> > Best
> > Régis
> > On 05/02/2021 13:53, Matej Mailing wrote:
> >
> > > Hi,
> > > I would like that the collision engine positions all the labels of
> > > selected layers at every scale. I am aware that I can play with the
> > > labeling priorities, but when there are two geometries, for example
> > > short line and a long line in case of roads or some crossings, there
> > > are locations on the map where a large number of labels should be
> > > visible and I cannot get a result that all of the labels are visible
> > > generally no matter what fixed positions are and their priorities.
> > > I need to plot out the map at the fixed scale and have all the labels
> > > of the selected layers visible at that scale in this scenario. I don't
> > > mind their exact location, just that they have to be visible and not
> > > covered by each other. The labels are from a number of layers and
> > > represent different types of information (i.e. road names, blocks,
> > > crossing names etc.) and I need them to be positioned in a way they
> > > are all always visible, which is currently impossible as a small
> > > crossing is such a small geometry that is covered with labels from
> > > other objects although trying all the priority combinations.
> > > Maybe the scale parameter isn't important in this equation as I am
> > > thinking now as if enabled, this feature would simply work at all the
> > > scales :)
> > > Hopefully I was able to define this clear enough. If not, please let me know ;)
> > > Thanks,
> > > Matej
> > > V V pet., 5. feb. 2021 ob 13:20 je oseba Régis Haubourg
> > > regis.haubourg at gmail.com napisala:
> > >
> > > > Hi,
> > > > I'm not sure I get correctly what you mean here. You would like the
> > > > collision engine to take into account a subset of selected layers? How
> > > > would you select them ? Are you aware that you can already play with
> > > > labeling priorities on a layer level, and also use some layers to block
> > > > labeling on its features.
> > > > Let us know a bit more precisely how you see it.
> > > > Best regards
> > > > Régis
> > > > On 05/02/2021 13:14, Matej Mailing wrote:
> > > >
> > > > > Hello Regis,
> > > > > thank you for the clarification. What would help very much would be an
> > > > > optional input to the collision engine to execute itself for the
> > > > > labels of the selected layers at the selected scale. The result would
> > > > > then, if I understand correctly, mean that no labels of the selected
> > > > > layers cover each other at that scale. Would that make sense?
> > > > > Thanks,
> > > > > Matej
> > > > > V V pet., 29. jan. 2021 ob 18:20 je oseba Régis Haubourg
> > > > > regis.haubourg at gmail.com napisala:
> > > > >
> > > > > > Hi Matej,
> > > > > > There is no geometry stored for labels, it is all up to the collision
> > > > > > engine to compute on the fly for each context where to draw labels.
> > > > > > You can "pin" labels, and a XY location is stored then, either in the
> > > > > > dataset if you set dedicated fields in the advanced labeling options,
> > > > > > and your layer is editable, Or in the auxiliary database (a sqlite .qgd
> > > > > > side car file) linked to your layer.
> > > > > > You can access the auxiliary data in the layer properties.
> > > > > > Last option I know of, you can use geometry generators to provide
> > > > > > "paths" for labels. Ex: smoothen a sharp line with some smooth /
> > > > > > generalize expressions so that the curved labels are better looking.
> > > > > > Best regards
> > > > > > Régis
> > > > > > On 19/01/2021 15:41, Matej Mailing wrote:
> > > > > >
> > > > > > > Hello,
> > > > > > > where are the geometries of the labels stored in the 3.16.x branch?
> > > > > > > We would like to get them to PostGIS to autmatically manipulate the
> > > > > > > positions in a way that the labels do not cover each other in a
> > > > > > > smaller scale, i.e. 1:1000. Or is there any plugin that would do this?
> > > > > > > Thanks,
> > > > > > > Matej
> > > > > > >
> > > > > > > Qgis-user mailing list
> > > > > > > Qgis-user at lists.osgeo.org
> > > > > > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > > > > > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > > > > >
> > > > > > Qgis-user mailing list
> > > > > > Qgis-user at lists.osgeo.org
> > > > > > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > > > > > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list