<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Lester/Carlos,</p>
<p>Even better would be to use a rule-based label (available since 2.14 I think).</p>
<p>With rule-based labeling it is most likely a bit faster, since QGIS doesn't have to deal with all of the contours that are not a multiple of 1000.</p>
<p>In your case, with the CASE statement it still has to process every contour line.</p>
<p>Andreas</p>
<p>On 2016-08-18 15:31, Lester Anderson wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Thanks Carlos, that worked fine<br /><br /> On 18 August 2016 at 14:11, Carlos Cerdán <<a href="mailto:sig.upagu@gmail.com">sig.upagu@gmail.com</a>> wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi Lester.<br /><br /> I think you're close to do it. Try this label expression:<br /><br /> case when "ELEV"%1000=0 then "ELEV" end<br /><br /> Good luck<br /><br /> Carlos<br /><br /><br /> 2016-08-18 7:49 GMT-05:00 Lester Anderson <<a href="mailto:arctica1963@gmail.com">arctica1963@gmail.com</a>>:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br /> Hello,<br /><br /> Is there a simple way of labelling only certain contours rather than all?<br /><br /> I have set up bathymetry styling for thick contours (1000) and thin (100):<br /> "ELEV" % 1000 = 0  (thick)<br /> "ELEV" % 1000 <> 0 (thin)<br /><br /> I would like to label only the 1000 contours, i.e. conditional labelling.<br /><br /> Thanks<br /> _______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
<br /><br /><br /> _______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>
_______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>