[Qgis-user] Variable map_scale in qgis server
Thibault COUPIN
thibault.coupin at ird.fr
Thu Jun 21 00:10:15 PDT 2018
I found a temporary workaround, supposing the CRS is projected:
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)
Le 20/06/2018 à 21:18, Thibault COUPIN a écrit :
> 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 ?
>
> Thanks for your answers
>
> Have a nice day/night!
>
> Thibault
>
> Twitter: @thibbojunior
> Github: tcoupin
>
> Pour nous remonter une erreur de filtrage, veuillez vous rendre ici
> <http://f.security-mail.net/409i4L6yDR0>
>
>
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180621/27e3ff76/attachment.html>
More information about the Qgis-user
mailing list