Hi Julierme,

The GetProjectSettings XML response provides an element called <LayerDrawingOrder/> where you can find the initial layer order of the QGIS project. Based on this, you can then formulate the GetMap request with the "LAYERS" parameter. The order you specify after LAYERS= defines the layer rendering order.

Greetings,

Andreas

On 2021-03-31 22:16, 1520 gis wrote:

Hi Andrea,

Did you mean to add [1] LAYERDRAWINGORDER=... as a parameter in WMS request?

[1] <LayerDrawingOrder>OSM,biomas,ufe,rodovias,aerovias,rbmc,maregrafos,cbers4</LayerDrawingOrder>

Kind regards

Julierme

On Wed, Mar 31, 2021 at 2:13 PM 1520 gis <juliermeopensourcedevelo...@gmail.com> wrote:
Hi Andreas,

Thank you very much for your reply and help.

I appreciate it.

Kind regards

Julierme

On Wed, Mar 31, 2021 at 1:17 PM Andreas Neumann <a.neum...@carto.net> wrote:

Hi Julierme,

It is the client that requests a certain layer order, not the server. Unless you request a group layer/top level layer.

You find the information on the initial layer order in the GetProjectSettings response: https://docs.qgis.org/3.16/en/docs/server_manual/services.html#server-wms-getprojectsettings

The information of the GetProjectSettings response can be parsed by the client and used to generate an appropriate GetMap request with the correct layer order.

Hope this helps,

Andreas

On 2021-03-31 18:07, 1520 gis wrote:

Hi developers,

I have tried to change the QGIS-Server layer order using QGIS Desktop Layers Panel and L.TileLayer.WMS (Leaflet) zIndex options. None of them could change the layer order. It seems that QGIS-Server always serves from bottom to Top: raster images, polygons, lines and points by default. Is there any way to change these settings?

Kind regards

Julierme

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to