Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Kurt Menke
Yes that is closer but the real goal is to be able to add an SLD to the project file. Ideally as a SLD_BODY parameter for the URL. Kurt On Tue, Oct 26, 2021 at 6:30 PM Charles Dixon-Paver wrote: > Just to chime in, all these responses seem to be discussing sld and wms > server configuration opti

Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Charles Dixon-Paver
Don't thank me yet! My in-between-meetings mailing list brain was at work and I should have phrased that differently. I was actually meaning to ask whether that would work on wms layers and I haven't tested it out On Tue, 26 Oct 2021, 19:02 Kurt Menke, wrote: > Thanks Charles, > This may be the

Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Charles Dixon-Paver
Just to chime in, all these responses seem to be discussing sld and wms server configuration options, but the original question mentioned applying edits to the qgis project file. I would think the simplest solution is to use something like loadSldStyle[1] from pyqgis? Not sure if I'm missing the po

Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Jorge Gustavo Rocha
Hi René, I'm just asking questions to fully understand the use case. Thank you for your feedback. You mentioned an interesting point. As you mentioned, the solution can be based on the server side if the map server accepts an SLD. This approach can not be used against WMS services working b

Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread René-Luc Dhont
Hi Jorge, WMS Server can process SLD  provide in a GetMap Request. QGIS Server is able to apply an SLD to a layer and provide the resulting image. The SLD can be provided through the SLD_BODY parameter or the  SLD parameter for linked file. https://docs.qgis.org/3.16/en/docs/server_manual/serv

Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Kurt Menke
Hi Ian, The issue is that we are not serving the data, and they are not available as WFS. We want to apply an SLD to the data in an automatically generated QGIS project file. Kurt On Tue, Oct 26, 2021, 12:56 Ian Turton wrote: > I would probably do this as a WFS request and then apply the SLD (or

Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Ian Turton
I would probably do this as a WFS request and then apply the SLD (or QML) style locally. The WMS standard does provide for sending an SLD with the request to the server so it can render the data for you using your style, but that's quite a heavy process. Ian On Tue, 26 Oct 2021 at 10:58, Kurt Men

Re: [QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Jorge Gustavo Rocha
Hi Kurt, By design, WMS GetMap requests returns images. Those are rendered on the server side, by the map server. Many services just provide those rendered images. Are you trying to provide advanced image processing capabilities on the client side to apply an SLD on top those images? Or wo

[QGIS-Developer] applying an SLD to a WMS layer

2021-10-26 Thread Kurt Menke
Hello, We have been developing web apps that allow the user to download the selected extent and data layers as a QGIS project file. Many of the layers are hosted by the government as WMS services. We are wondering if anyone has looked into the possibility of applying an SLD style to a WMS layer in