[Qgis-user] Re : Multy field labels

Junior delazj at gmail.com
Fri May 15 07:32:57 PDT 2015


Hi
in your last code, you use both name_geo and NAME_GEO. Field name is case sensitive.
Another approach can be to use concat function which better manages null values than ||...

HTH,
Harrissou

Envoyé depuis mon HTC

----- Reply message -----
De : "Irakli Ugulava" <i.ugulava at gmail.com>
Pour : <qgis-user at lists.osgeo.org>
Objet : [Qgis-user] Multy field labels
Date : ven., mai 15, 2015 16:01

For physical map need to label summits and elevation points, some of them have name some no, so I need to label them from different fields.
when I use expression :

"NAME_GEO"   ||  "elev"

It works, but summits with no names, (field "NAME_GEO" is empty), has no label at all, according to ArcGis logic they should have only elevation on labels.

I try following expression  
CASE WHEN "name_geo" is null   THEN "NAME_GEO"   ||   "ELEV"  ELSE "elev"

but it return no labels at all.

Thanks All
-- 
Irakli UgulavaSenior GIS Expert, Cofounder 
GeoLand Ltd.
3 Telegraph Cule-de-sac
Tbilisi 0105, Georgia, 
Tel:  +995 32 922553
Mob +995 99 172016
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150515/d6a7e03d/attachment.html>


More information about the Qgis-user mailing list