<div dir="ltr">Bernd,<div>Thanks for the hint. <br><div>The % operator description in QGIS only says: <span style="color:rgb(0,0,0);font-family:"Lato,Ubuntu,Lucida Grande,Segoe UI,Arial,sans-serif";white-space:pre-wrap">Remainder of division</span></div><div><span style="white-space:pre-wrap">This has thrown me off in the past because I have tried to search for the Modulo in the expressions dialog and nothing came up. </span></div><div><span style="white-space:pre-wrap">I should probably request a change to add the </span>modulo term <span style="white-space:pre-wrap">at the QGIS </span>git hub<span style="white-space:pre-wrap">. </span></div><div><span style="white-space:pre-wrap"><br></span></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 1:45 PM Bernd Vogelgesang <<a href="mailto:bernd.vogelgesang@gmx.de">bernd.vogelgesang@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>In case someone wants to google for the " % " later: it's called
      modulo operator (damn, took me half an hour to remember that)</p>
    <p><br>
    </p>
    <div>On 03.03.21 19:20, Sebastian Gutwein
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>Sorry typo: "ELEV" :The attribute field that contains your elevation

On Wed, Mar 3, 2021 at 1:19 PM Sebastian Gutwein <a href="mailto:bas@rdgland.com" target="_blank"><bas@rdgland.com></a> wrote:

</pre>
      <blockquote type="cite">
        <pre>I use rule based styling with this expression for my 100m contour filter
rule:
"ELEV" % 100 = 0
And then another rule that has the Else selected.
The formula is:
"ELEV" :The attribute field that contains your label
% : The remainder from division
100 : the divider
= 0 : the remainder should equal zero.
This filters all the 100m contours.

On Wed, Mar 3, 2021 at 1:01 PM Azzurra Lentini <a href="mailto:azzurralentini@gmail.com" target="_blank"><azzurralentini@gmail.com></a>
wrote:

</pre>
        <blockquote type="cite">
          <pre>Hi to all,

I have extracted contours from a dtm raster 20 m resolution file and the
result is a vector file of contours with 20 m of interval between the
contours.

I would like to have two different symbols for these contours: for
example black colour and thickness 1 for the contours with interval of 100
m (0, 100, 200, 300 etc.) and grey colour and thickness 0.5 for the
contours 20, 40, 60, 80, 120, 140 .. etc.).

What can I do?

Normally I create another contours file only for the contours equidistant
100 m and I put a different symbol for the 2 layers.

Do you know other ways without the creation of another file?
maybe rule-based symbology?


Thank you, Azzurra

--
Lecturer GIS University "Roma Tre"
Consultant Environmental Risk Prevention and Hydrogeology
AZZURRA LENTINI
++++++++++++++++++++++++++
Italy Mobile Tel.: **(39) 338 24 40 676
++++++++++++++++++++++++++
SKYPE azzurrahydro
++++++++++++++++++++++++++

*<a href="mailto:azzurralentini@gmail.com" target="_blank">azzurralentini@gmail.com</a> <a href="mailto:azzurralentini@gmail.com" target="_blank"><azzurralentini@gmail.com></a>*

*<a href="mailto:azzurra.lentini@uniroma3.it" target="_blank">azzurra.lentini@uniroma3.it</a> <a href="mailto:azzurra.lentini@uniroma3.it" target="_blank"><azzurra.lentini@uniroma3.it></a> *
++++++++++++++++++++++++++
*Par respect pour l'environnement,*

*n'imprimez ce mail qu'en cas d'absolue nécessité*





_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>

</pre>
        </blockquote>
        <pre></pre>
      </blockquote>
      <pre></pre>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
  </div>

</blockquote></div>