[QGIS-Developer] $scale vs @map_scale - QGIS v2 vs v3

Matthias Kuhn matthias at opengis.ch
Mon Jan 21 04:57:53 PST 2019

Hi Andreas,

I think the easiest approach is to search and replace in the project files.

Expressions are in so many places in QGIS, it's close to impossible to
write code that finds them all and updates.



On 1/21/19 1:52 PM, Andreas Neumann wrote:
> Hi,
> 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.
> What is the exact reason that $scale fails in version 3 and had been
> replaced by @map_scale?
> 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".
> Thanks for your reply,
> Andreas
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Matthias Kuhn
matthias at opengis.ch <mailto:matthias at opengis.ch>
+41 (0)76 435 67 63 <tel:+41764356763>
OPENGIS.ch Logo <http://www.opengis.ch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190121/31c132f7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6671 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190121/31c132f7/attachment.png>

More information about the QGIS-Developer mailing list