<div dir="ltr">Issue solved, It works!.<br><br>Thank you Nathan and Jonathan. The Modulo operator is new for me.<br><br>Regards <br><div><br></div><div>Carlos<br></div><div><br></div><br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/8/15 Jonathan Moules <span dir="ltr"><<a href="mailto:jonathanmoules@warwickshire.gov.uk" target="_blank">jonathanmoules@warwickshire.gov.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Exactly what I was thinking, though wouldn't you want the modulo to be 200 in this case (you used 400 in your example)?<div>Carlos - the advantage of this is it will automagically work for all heights, even mount Everest or the Mariana Trench.<br>


<div><br></div><div>Cheers,</div><div>Jonathan<div><div class="h5"><br><div><br></div>
<br><br><div class="gmail_quote">On 15 August 2013 15:08, Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com" target="_blank">madmanwoo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">or you can use the Modulo operator ;)<div><br></div><div><span style="font-size:13px;font-family:arial,sans-serif">CASE WHEN </span><span style="font-size:13px;font-family:arial,sans-serif">Z_msnm % 400 = 0 THEN </span><span style="font-size:13px;font-family:arial,sans-serif">Z_msnm</span><span style="font-size:13px;font-family:arial,sans-serif"> END</span><br>




</div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">- Nathan</span></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote"><div><div>On Fri, Aug 16, 2013 at 12:04 AM, Carlos Cerdán <span dir="ltr"><<a href="mailto:sig.upagu@gmail.com" target="_blank">sig.upagu@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

<div dir="ltr"><div><div><div>Hi dear group<br><br>I have a topographic layer that I want to put labels when the contour is multiplo of 200. I got it with this large conditional sentence:<br><br>case<br><br>when ("Z_msnm" =200 OR "Z_msnm" =400 OR "Z_msnm" =600 OR "Z_msnm" =800 OR "Z_msnm" =1000 OR "Z_msnm" =1200 OR "Z_msnm" =1400 OR "Z_msnm" =1600 OR "Z_msnm" =1800 OR "Z_msnm" =2000 OR "Z_msnm" =2200 OR "Z_msnm" =2400 OR "Z_msnm" =2600 OR "Z_msnm" =2800 OR "Z_msnm" =3000 OR "Z_msnm" =3200 OR "Z_msnm" =3400 OR "Z_msnm" =3600 OR "Z_msnm" =3800 OR "Z_msnm" =4000 OR "Z_msnm" =4200 OR "Z_msnm" =4400 OR "Z_msnm" =4600 OR "Z_msnm" =4800 OR "Z_msnm" =5000 OR "Z_msnm" =5200 OR "Z_msnm" =5400 OR "Z_msnm" =5600 OR "Z_msnm" =5800 OR "Z_msnm" =6000 OR "Z_msnm" =6200 OR "Z_msnm" =6400 OR "Z_msnm" =6600 OR "Z_msnm" =6800) then "Z_msnm"<br>






<br>end<br><br>After to do this condition all was ok, but an issue appear: the "label layer configuration window" tries to show the condition in one line only, so the width of this window is so long that the right part of this window goes out of monitor visible area.<br>






<br>Is there some way to avoid this?. It happens even if each condition is in diferent lines (QGIS 1.8 on Ubuntu 12.04 and Windows 7). <br><br>Is there another smaller condition to use instead that the one I made?  <br><br>





Thank you in advance for any help<br><br></div><div>------ 8< --- Spanish version ---<br>
</div><div><br></div><div>Hola estimado grupo:<br><br></div><div>Tengo una capa topográfica a la cual  deseo colocar etiquetas en las curvas de nivel múltiplo de 200. Esto lo hice con la condición mostrada arriba.<br><br>






</div><div>case <br></div><div>when ("Z_msnm ... etc<br></div><div>end<br></div><br></div>La condición trabaja bien, pero aparece un problema: la ventana de "configuración del etiquetado de la capa" muestra la condición en una sola línea, así que el ancho es tan grande que la parte derecha de esta ventana sale fuera del área  visible del monitor.<br>






<br></div><div>¿Existe alguna manera de evitar esto? Esto sucede inclusive si cada condición está en una línea diferente ( QGIS 1.8 en Ubuntu 12.04 y Windows 7).<br><br> ¿Hay alguna condición más corta que podría utilizar en lugar de la que hice?<br>





<br></div><div>Gracias de antemano por cualquier ayuda<br>
<br>------ 8< -------<br><br></div><div>Carlos Cerdán<br></div></div>
<br></div></div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></blockquote></div><br></div></div></div></div>

<br>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif">This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.</span></blockquote>
</div><br></div>