[Qgis-developer] $scale vs. @map_scale variable - Inconsistency between Desktop and Server

Nyall Dawson nyall.dawson at gmail.com
Tue Oct 11 01:05:40 PDT 2016


On 11 Oct 2016 5:59 PM, "Neumann, Andreas" <a.neumann at carto.net> wrote:
>
> Hi,
>
> I noticed that $scale and @map_scale exist in parallel, but are not
consistently behaving between QGIS Desktop and QGIS server.
>
> $scale: works fine on both Desktop and Server, but expression preview in
QGIS Desktop fails.
>
> @map_scale: works fine on QGIS Desktop and also in expression preview,
but fails on QGIS Server.

Hi Andreas,

Server doesn't have access to any of the map settings related variables,
like the scale, rotation, extent, etc. (This is why 25d ordering is messed
up in server).

Server needs to be ported away from the old map renderer before this can be
fixed.

Nyall
>
> Context: expression to calculate letter spacing in a label for different
map scale. Tested on QGIS Master 2.x on Windows 7 64bit.
>
> Thank you,
>
> Andreas
>
>
>
>
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161011/872d80de/attachment-0001.html>


More information about the Qgis-developer mailing list