[Qgis-user] Using qcl filter with WMS

Henning Jagd hjagd11 at gmail.com
Fri Dec 20 04:47:24 PST 2013


It works! The method isn't very convenient, but it gets the right data.
Thanks a lot!

I found that adding "IgnoreGetMapUrl=1" to the parameters of
an addRasterLayer() call makes it possible to do this from the console, it
just requires the URL to be extended with the qcl_filter and encoded
(basicly just replace the '&' with '%26'). So it might even be possible for
me to make the whole process convenient with a bit of scripting. Again
thanks.

Best,
Henning


On Fri, Dec 20, 2013 at 11:18 AM, Jukka Rahkonen
<jukka.rahkonen at mmmtike.fi>wrote:

> Henning Jagd <hjagd11 at ...> writes:
>
> >
> >
> > Hi List,I am using QGIS 2 to view some WMS maps from a Geoserver. I want
> to filter the data using a CQL_FILTER option in the request, but cannot
> figure out how to do this in QGIS? I tried using the python console and
> adding the filter as a parameter in a qgis.utils.iface.addRasterLayer()
> call, but this didn't seem to work. Any other ideas on how I could get this
> to work?
>
> I have not tested, but it might work if you create a new WMS connection and
> include the CQL filter part into the WMS base URL. You must check the first
> selection box for so that the GetMap that is advertised by the server will
> not be used.
>
> I think that some easy way to add and edit vendor parameters for each WMS
> layer would be nice to have. It could be used for CQL filter, SLD,
> SLD_BODY etc.
>
> -Jukka Rahkonen-
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20131220/de04eeba/attachment.html>


More information about the Qgis-user mailing list