[Qgis-user] labels: avoid duplicated labels

Goyo goyodiaz at gmail.com
Thu Oct 3 12:18:50 PDT 2013


2013/10/3 Duarte Carreira <DCarreira at edia.pt>:
> Thanks for your suggestion.
>
> But this is not feasible. I cannot keep creating new spatial tables for cartographic purposes, I just can't pay the maintenance cost of that (updating).

I was thinking of shapefiles and the like. With a spatial dabase it
should be even easier. You can have a second geometry field and
mantain it using a trigger or a script running in the background or at
night or use a spatial view or just use multipolygons instead of (not
in addition to) single polygons. The best solution depends on your
typical workflow, the size of your data, etc.

It also depends on which database engine you use. I have done this
kind of things with spatialite and I think they can be done with
postgis in a similar way. In particular I've found spatial views are a
very powerful tool for cartography. I often want to show multipoint
features as polygons (buffer(convexhull(geom), n)) or single points
(centroid(buffer(convexhull(geom), n))) and I can do it even on the
fly using the DB manager or the fast SQL layer plugin.

Goyo

> It is awkward to me missing this option...
>
> Duarte
>
>
>
> -----Mensagem original-----
> De: Goyo [mailto:goyodiaz at gmail.com]
> Enviada: quinta-feira, 3 de Outubro de 2013 16:57
> Para: Duarte Carreira
> Cc: Qgis (qgis-user at lists.osgeo.org)
> Assunto: Re: [Qgis-user] labels: avoid duplicated labels
>
> 2013/10/3 Duarte Carreira <DCarreira at edia.pt>
>>
>> Hi there.
>>
>>
>>
>> Is there any option to avoid duplication of labels when several polygons have the same label?
>
> Convert your polygons to multipoligons, grouping by the field shown in the label.
>
> Goyo
>



More information about the Qgis-user mailing list