[Qgis-user] Using qcl filter with WMS
Jukka Rahkonen
jukka.rahkonen at mmmtike.fi
Fri Dec 20 02:18:44 PST 2013
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-
More information about the Qgis-user
mailing list