<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
Hi,<br>
Not sure why the ArcGis logic does not work. Any ways, try the
following for your query. (You inverted your is null... and where
asking QGIS to add 2 field in the label only when it is null and
QGIS does not seem to do that.) <br>
<br>
Case When "name_geo" is null then "ELEV" <b>else</b> "name_geo" ||
"ELEV" <b>end</b><br>
<br>
not<br>
<br>
CASE WHEN "name_geo" is null THEN "NAME_GEO" || "ELEV" <b> ELSE</b>
"elev" <br>
<br>
Cheers!<br>
Nicolas<br>
<br>
<div class="moz-cite-prefix">Le 2015-05-15 09:58, Irakli Ugulava
[via OSGeo.org] a écrit :<br>
</div>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'
cite="mid:CALDcodX6m9bSd_NTY2aJwAkgDuq28+13mTEMS4mnuK_eaG2=OA@mail.gmail.com"
type="cite">
<div dir="ltr">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.
<div><br>
</div>
<div>when I use expression :</div>
<div><br>
</div>
<div>"NAME_GEO" || "elev"</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>I try following expression </div>
<div>CASE WHEN "name_geo" is null THEN "NAME_GEO" ||
"ELEV" ELSE "elev"</div>
<div><br>
</div>
<div>but it return no labels at all.</div>
<div><br>
</div>
<div>Thanks All<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">Irakli Ugulava
<div>Senior GIS Expert, Cofounder <br>
<div>GeoLand Ltd.</div>
<div>3 Telegraph Cule-de-sac</div>
<div>Tbilisi 0105, Georgia, </div>
<div>Tel: +995 32 922553</div>
<div>Mob +995 99 172016</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________
<br>
Qgis-user mailing list
<br>
<a moz-do-not-send="true"
href="/user/SendEmail.jtp?type=node&node=5205919&i=0"
target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
<br>
<br>
<hr color="#cccccc" noshade="noshade" size="1">
<div style="color:#444; font: 12px
tahoma,geneva,helvetica,arial,sans-serif;">
<div style="font-weight:bold">If you reply to this email, your
message will be added to the discussion below:</div>
<a moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/Multy-field-labels-tp5205919.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Multy-field-labels-tp5205919.html</a>
</div>
<div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under Quantum GIS - User, email
<a href="/user/SendEmail.jtp?type=node&node=5205930&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
To unsubscribe from Quantum GIS - User, <a
moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
here</a>.<br>
<a moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
</blockquote>
<br>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Multy-field-labels-tp5205919p5205930.html">Re: Multy field labels</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>