[Qgis-user] Variable map_scale in qgis server

Thibault COUPIN thibault.coupin at ird.fr
Fri Jun 22 04:08:44 PDT 2018


(The image : 
https://user-images.githubusercontent.com/7457386/41773707-4cc7e754-761d-11e8-8f99-b6845783e286.jpeg)

Le 22/06/2018 à 13:02, Thibault COUPIN a écrit :
> I made a project to show all variables status : as you can see on the 
> image, most are null ("A" on map)
>
> http://127.0.0.1:8080/ows?service=WMS&request=GetMap&version=1.1.1&layers=Departement%2CRegion%2Cmap_variables_test&styles=&format=image%2Fjpeg&transparent=true&tiled=false&info_format=text%2Fhtml&width=1510&height=1348&srs=EPSG%3A3857&bbox=-722788.5394646267%2C5048512.844179321%2C1123930.063905232%2C6697106.670234004 
>
> Le 22/06/2018 à 09:30, Thibault COUPIN a écrit :
>> I use 3.0.3 on desktop and on server.
>> @map_scale works on dekstop, not on server
>>
>> Le 22/06/2018 à 00:19, Nyall Dawson a écrit :
>>> 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
>>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
>
>
>
>
> _______________________________________________
> 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/20180622/ae2c1a94/attachment.html>


More information about the Qgis-user mailing list