Description
similar to #7705, but for WMS protocol
How to reproduce
Expected Result
the pdf should contain data from WMS layer
Current Result
the image shows Invalid request: invalid tile size (use 256x256), probably because in the POST data ms2 sends TILED=true (added by https://github.com/geosolutions-it/MapStore2/blob/master/web/client/utils/PrintUtils.js#L490).
the postdata sent to mfprint has this:
{
"baseURL": "https://tiles.craig.fr/pci/service?",
"opacity": 1,
"singleTile": false,
"type": "WMS",
"layers": [
"cadastre"
],
"format": "image/png",
"styles": [
""
],
"customParams": {
"TRANSPARENT": true,
"TILED": true,
"EXCEPTIONS": "application/vnd.ogc.se_inimage",
"scaleMethod": "accurate",
"ENV": ""
}
}
The WMS request sent by mfprint to mapproxy looks like this:
https://tiles.craig.fr/pci/service?BBOX=335973.47%2C5827852.5%2C339748.2%2C5832086.0&WIDTH=713&HEIGHT=800&format_options=dpi%3A96&map_resolution=96&FORMAT=image%2Fpng&STYLES=&ENV=&LAYERS=cadastre&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&TILED=true&SRS=EPSG%3A3857&REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&scaleMethod=accurate&TRANSPARENT=true
which reproduces the error. Without TILED=true the query succeeds.
The same layer successfully prints when being added/queried as WMTS since #7705.
From my understanding of WMS, if using TILED=true the HEIGHT and WIDTH parameters should match the server tile size (which at that point mapstore knows, since it uses it to display the layer?).
@offtherailz, any idea ?
Description
similar to #7705, but for WMS protocol
How to reproduce
cadastrelayerExpected Result
the pdf should contain data from WMS layer
Current Result
the image shows
Invalid request: invalid tile size (use 256x256), probably because in the POST data ms2 sendsTILED=true(added by https://github.com/geosolutions-it/MapStore2/blob/master/web/client/utils/PrintUtils.js#L490).the postdata sent to mfprint has this:
The WMS request sent by mfprint to mapproxy looks like this:
https://tiles.craig.fr/pci/service?BBOX=335973.47%2C5827852.5%2C339748.2%2C5832086.0&WIDTH=713&HEIGHT=800&format_options=dpi%3A96&map_resolution=96&FORMAT=image%2Fpng&STYLES=&ENV=&LAYERS=cadastre&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&TILED=true&SRS=EPSG%3A3857&REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&scaleMethod=accurate&TRANSPARENT=true
which reproduces the error. Without
TILED=truethe query succeeds.The same layer successfully prints when being added/queried as WMTS since #7705.
From my understanding of WMS, if using
TILED=truetheHEIGHTandWIDTHparameters should match the server tile size (which at that point mapstore knows, since it uses it to display the layer?).@offtherailz, any idea ?