<div dir="ltr"><div><div><div>Thank you very much Andreas! You're right. I've just tried rule-based label with a large contours layer and difference in time consumption is notable.<br><br></div>So, in Lester's case, rule would be just:<br><br><div style="margin-left:40px">"ELEV" % 1000 = 0 <br></div><br></div>Regards<br><br></div>Carlos<br><div><br><br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-18 8:41 GMT-05:00 Neumann, Andreas <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div 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><span class="HOEnZb"><font color="#888888">
<p>Andreas</p></font></span><div><div class="h5">
<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">
<div 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" target="_blank">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" target="_blank">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> ______________________________<wbr>_________________<br> Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></blockquote>
<br><br><br> ______________________________<wbr>_________________<br> Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></blockquote>
______________________________<wbr>_________________<br> Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></div>
</blockquote>
<p> </p>
<div> </div>
</div></div></div>
</blockquote></div><br></div>