[Qgis-user] Variable map_scale in qgis server

Nyall Dawson nyall.dawson at gmail.com
Thu Jun 21 15:19:34 PDT 2018


On Thu, 21 Jun 2018 at 05:25, Thibault COUPIN <thibault.coupin at ird.fr> wrote:
>
> Hey everybody
>
> 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.
> Do you know how to get the WMS request scale ?

This is on QGIS 2.18 right? Server on 2.x doesn't have support for
variables (you need 3.0). For 2.18 try using "$scale" instead of
"@map_scale" - that should work in both desktop and server.

Nyall


>
> Thanks for your answers
>
> Have a nice day/night!
>
> Thibault
>
> Twitter: @thibbojunior
> Github: tcoupin
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



More information about the Qgis-user mailing list