Printing fails with WMS with cql_filters

Description

I have an application which applies cql_filter to multiple WMS services.

For my application, the printing extension fails when printing the map with 2 or more layers,
The frontend makes a request like this against pdf/create.json

And then MapFish logged this

What I read from above was MapFish has combined all the WMS services from the same host into one but did not combine the cql_filters, so GeoServer complained that...

Working this around could be very costly (either create hundreds of postgres views for every query combinations or let MapFish create images for each single layer and combine them in wkhtmltopdf).

It would be nice to make MapFish combine cql_filters or stop combining the WMS layers.

Regards,

Environment

Amazon Linux (Linux version 4.1.17-22.30.amzn1.x86_64 (mockbuild@gobi-build-60009))
Oracle JRE 1.8.0 Update 92
Tomcat 7.0.68

Activity

Show:
Mauro Bartolomeoli
May 13, 2016, 12:36 PM

Hi,
to successfully use cql_filter with more than one layer you have to include a mergeableParams section in your request spec.
Something like this:

mergeableParams: {
cql_filter: {
defaultValue: 'INCLUDE',
separator: ';',
context: 'http://labs.metacarta.com/wms/vmap0'
}
}

From the documentation: http://geoserver.geo-solutions.it/downloads/releases/2.8.x-ld/doc/extensions/printing/protocol.html

Go Sato
May 13, 2016, 1:15 PM

Oh... I overlooked that in the documentation and mergeableParams worked perfectly for me.

Many thanks to Mauro and I am happy this issue to be closed.

Andrea Aime
February 15, 2017, 11:47 AM

Mass closing all resolved issues not modified in the last 4 weeks

Not a Bug

Assignee

Unassigned

Reporter

Go Sato

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium