[Qgis-user] Multiple attribute labeling point layers

Lene Fischer lfi at life.ku.dk
Wed Oct 2 12:16:51 PDT 2013


It is also possible to use conditions. Right now a label is not shown if a single field is NULL.
So I´m using this expression:
Litra || '\n' || "Anvendelse" || '\n' || CASE WHEN "Anlaegaar" is NULL THEN '' ELSE "Anlaegaar" END
(The '' after THEN is a double-ping)

Regards
Lene Fischer
________________________________
Fra: qgis-user-bounces at lists.osgeo.org [qgis-user-bounces at lists.osgeo.org] på vegne af Carlos Cerdán [sig.upagu at gmail.com]
Sendt: 2. oktober 2013 19:24
Til: Carlos López PSIG
Cc: qgis-user
Emne: Re: [Qgis-user] Multiple attribute labeling point layers

Or.. you can do a expression based label:

"Field 1" || '\n' || "Field_2"

Result is label in two lines, with different fields. You can concatenate more text with ||

... but color is same


Good luck


Carlos Cerdán






2013/10/2 Carlos López PSIG <carlos.lopez at psig.es<mailto:carlos.lopez at psig.es>>
Hi Massimo,
Yes you can.
Only you need is you duplicate the layer and assign labels different in each other.

Is it ok?

All the best,

Carlos López Quintanilla
Consultor SIG
M. +34 699.680.261
carlos.lopez at psig.es<mailto:carlos.lopez at psig.es>


2013/10/2 Ometto Massimo <m.ometto2 at etraspa.it<mailto:m.ometto2 at etraspa.it>>
Hi

In QGIS 2.0.1 I need to label a point layer to display attributes stored in 2 different attribute fields.
I need to show them in different colors, and in a specific position, such as one in the up right and one in the down right of the point.

How is it possible to do this?

Thanks

Massimo






[Logo ETRA]
Etra Spa - Energia Territorio Risorse Ambientali
Sede legale: Largo Parolini, 82b
36061 Bassano del Grappa (VI)
www.etraspa.it<http://www.etraspa.it>

Rispetta l’ambiente: se non ti è necessario non stampare questa mail

Ai sensi del D. Lgs. 196/2003 le informazioni contenute in questo messaggio di posta elettronica sono di carattere riservato e ad uso esclusivo del destinatario sopra indicato. I dati personali vengono custoditi e controllati in modo da ridurne al minimo i rischi di distruzione, perdita, accesso non autorizzato o trattamento non consentito. Nell’ambito di tale finalità si informa che è vietato l'uso, la diffusione, distribuzione o riproduzione da parte di ogni altra persona. Nel caso aveste ricevuto questo messaggio di posta elettronica per errore, siete pregati di segnalarlo immediatamente al mittente e distruggere quanto ricevuto (compresi i file allegati) senza farne copia. Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non prendere cognizione della corrispondenza tra altri soggetti, salvo più grave illecito, ed espone il responsabile alle relative conseguenze, ai sensi del codice penale e del D.lgs 196/2003.

Confidentially notice. This e-mail transmission may contain legally privileged and/or confidential information. Please do not read it if you are not the intended recipient(S). Any use, distribution, reproduction or disclosure by any other person is strictly prohibited. If you have received this e-mail in error, please notify the sender and destroy the original transmission and its attachments without reading or saving it in any manner. Rif. D.l. 196/2003 and Penal Code

_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-user


_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20131002/fcd4b35e/attachment.html>


More information about the Qgis-user mailing list