Jake
Jake

Reputation: 2923

GeoServer: Set sequence of layers to be rendered in a WMS

how do I configure the sequence of layers in my GeoServer workspace such that when I read the layers in WMS in, say~ Tableau (below) or QGIS, the list of the layers available to be checked is in the sequence I need?

In ArcGIS Server, this can be easily set by aligning the layers in ArcMap before publishing it to the ArcGIS Server.

However, I can't seem to find such a configuration in GeoServer Admin.

Thanks!

enter image description here

Upvotes: 1

Views: 970

Answers (2)

Jake
Jake

Reputation: 2923

Got a solution for this.

I found out that arrangement of layers to be displayed on the client can be set by naming the layer "Name" field in order.

E.g., (1 Coastline), (2 Waterbodies), (3 Roads) will display coastline as first layer, followed by waterbodies and roads.

Upvotes: 0

Ian Turton
Ian Turton

Reputation: 10976

The ordering of the layers is solely at the control of the client. GeoServer just provides a list of layers that the client can pick and display in any order it likes.

If you need to combine certain layers in a specific order you could use a LayerGroup.

Upvotes: 2

Related Questions