[OpenLayers-Users] Correct format for cql_filter in WMSgetFeatiureInfo

Ian Turton ijturton at gmail.com
Tue Jun 12 04:25:26 PDT 2012


On 12 June 2012 11:16, Asle Benoni <asle.benoni at gmail.com> wrote:
> Hello,
> I am struggling with this code where I have a cql_filter generated from a
> search field. If the user has not searched anything the cql_filter must be
> empty. I had problems getting a correct syntax if the cql_filter is empty so
> I had to set a default value. But when I have a search code for cql_filter
> it fails telling me in Firebug:
>
> Layers and filters are mismatched, you need to provide one filter for each
> layer
>

That seems clear enough - you need to provide one filter for each
layer that you are querying - in your case you probably want to limit
the number of layers to just the one you are interested in.

Ian

-- 
Ian Turton


More information about the Users mailing list