<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Andreas,</p>
    <p>I think the easiest approach is to search and replace in the
      project files.</p>
    <p>Expressions are in so many places in QGIS, it's close to
      impossible to write code that finds them all and updates.</p>
    <p>Bests</p>
    <p>Matthias<br>
    </p>
    <div class="moz-cite-prefix">On 1/21/19 1:52 PM, Andreas Neumann
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9d7cf36e7043fbb0814b4994d8b1a4e7@carto.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi,</p>
      <p>When migrating our version 2 to version 3 projects, most of our
        symbology needs revision, because our data-defined properties
        used a lot the "$scale" variable.</p>
      <p>What is the exact reason that $scale fails in version 3 and had
        been replaced by @map_scale?</p>
      <p>Is there really no upgrade path for this? We have many, many
        projects, and almost all of them need to be upgraded in version
        3 to use "@map_scale" instead of "$scale".</p>
      <p>Thanks for your reply,</p>
      <p>Andreas</p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div class="moz-signature">
        <title></title>
        <div class="moz-signature"> <span style="text-align: left;
            color: #000000; font-family: 'Verdana', sans-serif;
            font-size: 10pt">Matthias Kuhn</span><br>
          <a href="mailto:matthias@opengis.ch" target="_blank"> <span
              style="text-align: left; color: #000000; font-family:
              'Verdana', sans-serif; font-size: 8pt">matthias@opengis.ch</span>
          </a><br>
          <span style="text-align: left; color: #000000; font-family:
            'Verdana', sans-serif; font-size: 8pt"><a
              href="tel:+41764356763">+41 (0)76 435 67 63</a></span><br>
          <div> <a href="http://www.opengis.ch"> <img
                moz-do-not-send="false"
                src="cid:part3.AB1FC2D0.FF0094C2@opengis.ch"
                alt="OPENGIS.ch Logo" width="200" height="80"></a> </div>
        </div>
      </div>
    </div>
  </body>
</html>