<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Helvetica, Arial, sans-serif">I found a temporary
      workaround, supposing the CRS is projected:<br>
      <br>
      coalesce(@map_scale,
      (regexp_substr(regexp_substr(lower(env('QUERY_STRING')),
'bbox=([^&]+)'),'[0-9.-]+,[0-9.-]+,([0-9.-]+)')-regexp_substr(regexp_substr(lower(env('QUERY_STRING')),
'bbox=([^&]+)'),'([0-9.-]+)'))/regexp_substr(lower(env('QUERY_STRING')),
      'width=(\\d+)')/0.00024)<br>
      <br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">Le 20/06/2018 à 21:18, Thibault COUPIN
      a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:7e8dded8-9754-86cd-d554-fda33564cc46@ird.fr">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <font face="Helvetica, Arial, sans-serif">Hey everybody<br>
        <br>
        I use @map_scale in my style to select features depending on the
        map scale. It work like a charm on desktop but not on server.<br>
        Do you know how to get the WMS request scale ?<br>
        <br>
        Thanks for your answers<br>
        <br>
        Have a nice day/night!<br>
        <br>
        Thibault<br>
        <br>
        Twitter: @thibbojunior<br>
        Github: tcoupin<br>
      </font> <br>
      <p>Pour nous remonter une erreur de filtrage, veuillez vous rendre
        <a href="http://f.security-mail.net/409i4L6yDR0"
          moz-do-not-send="true">ici</a></p>
      <p>
        <br>
        <!--'"--><br>
      </p>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>