[QGIS-Developer] QGIS Server request extra parameters as variables for expressions

Patrick Valsecchi patrick.valsecchi at camptocamp.com
Thu Nov 23 05:49:35 PST 2017


You could do that using the filter parameter with something like that:
FILTER=layer_name:"floor" = 3

On Thu, Nov 23, 2017 at 2:38 PM, Matthias Kuhn <matthias at opengis.ch> wrote:

> Like WMS dimension?
>
> http://mapserver.org/ogc/wms_dimension.html
>
> Matthias
>
>
> On 11/23/17 2:11 PM, Arnaud Morvan wrote:
> > 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
> >
> > _______________________________________________
> > 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
> >
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171123/717c4024/attachment.html>


More information about the QGIS-Developer mailing list