[QGIS-Developer] QGIS Server request extra parameters as variables for expressions
Arnaud Morvan
arnaud.morvan at camptocamp.com
Thu Nov 23 05:11:16 PST 2017
Hello,
I would like GetMap and GetFeature request extra parameters to be
accessible as variables in server.
So we could define, in QGIS project, a variable "floor", used to filter
layers.
On desktop side, we could have a desktop plugin named FloorSlider to
change the "floor" value.
And on the server side, the floor value could be passed as extra parameter.
So it would be easy to handle multi-floor layers in a project file.
Arnaud Morvan
Ingénieur logiciel
Tél: +33 (0)4 58 48 20 32
Camptocamp France SAS
18 rue du Lac Saint André
Savoie Technolac - Bâtiment Le Dauphin
F-73370 Le Bourget du Lac
http://www.camptocamp.com
Le 22/11/2017 à 18:05, René-Luc Dhont a écrit :
> Hi Arnaud,
>
> Is it like updated a QGIS project variables ?
>
> Regards,
>
> René-Luc
>
>
> Le 22/11/2017 à 15:31, Arnaud Morvan a écrit :
>> Hello,
>>
>> With mapserver, request extra parameters are accessible as template
>> variables in mapfile.
>>
>> I would like to implement the same possibility in QGIS Server, extra
>> parameters may be accessible in project as expression variables.
>>
>> For example : I would like to pass in a GetMap request an extra
>> parameter FLOOR.
>>
>> This parameter could be handled by QGIS Server as a variable value,
>> so this could be used in the project to filter some layers using an
>> expression.
>>
>> Do you think this could be acceptable directly in QGIS Server, or may
>> I have to wrote a plugin.
>>
>> Maybe this type of plugin already exists ?
>>
>> Note that I'm not familiar with server part.
>>
>> Best regards
>>
>
> _______________________________________________
> 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
More information about the QGIS-Developer
mailing list