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.rahko...@mmmtike.fiwrote:
Henning Jagd hjagd11@... 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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user