Re: [QGIS-Developer] QGIS-Server: filter by categories in an OGC compatible way

2019-04-09 Thread Jonathan Moules
Hi Andrea, Just checked the WMS 1.3.0 spec: "HTTP supports two request methods: GET and POST. One or both of these methods may be offered by a server, and the use of the Online Resource URL differs in each case. Support for the GET method is mandatory; support for the POST method is

Re: [QGIS-Developer] QGIS-Server: filter by categories in an OGC compatible way

2019-04-09 Thread Andreas Neumann
Hi Jonathan, I am aware about the limit in GET requests. Are you sure that WMS servers don't support POST requests? Some Google hits suggest otherwise Geoserver: https://anitagraser.com/2010/06/09/getmap-from-geoserver-using-http-post/ UMN:

Re: [QGIS-Developer] QGIS-Server: filter by categories in an OGC compatible way

2019-04-09 Thread Jonathan Moules
Hi Andreas, Another problem you may hit - the link below is hitting it being ~2300 chars - URL's (and thus GET requests) cannot reliably be more than about 2000 characters long. At that point you need to shift over to POST requests (and I think GetMap is GET only...).

Re: [QGIS-Developer] QGIS-Server: filter by categories in an OGC compatible way

2019-04-09 Thread Andreas Neumann
Hi Paul Thanks - now I know that I have to use SLD_BODY for the case where the SLD is in the URL. Another QGIS-Server specific question: Can I count on it that the SLD output by QGIS server with the GetStyles request can also be consumed again by QGIS server? What about complex styles

Re: [QGIS-Developer] QGIS-Server: filter by categories in an OGC compatible way

2019-04-09 Thread pblottiere
Hi Andreas, > Can you point me to an example how to create a valid GetMap request with an SLD submitted? There's a basic example in unit tests: https://github.com/qgis/QGIS/blob/master/tests/src/python/test_qgsserver_wms_getmap.py#L1309-L1325 Regards, Paul On 4/9/19 4:14 PM, Andreas

Re: [QGIS-Developer] QGIS-Server: filter by categories in an OGC compatible way

2019-04-09 Thread Andreas Neumann
Hi, I did some test: Here is a long URL with the SLD (originally sent by QGIS server, stripped away some RULES manually) and sending it back in a GetMap request:

[QGIS-Developer] QGIS-Server: filter by categories in an OGC compatible way

2019-04-09 Thread Andreas Neumann
Hi, Does QGIS-Server support SLD styles to filter away RULEs in a GetMap Request? I would assume, yes, but in what encoding would I submit such an SLD in a GET request? I know that one should rather use POST reqests for such long parameters, but for experimenting, it would be ok to use GET.