Hello, everyone.
I am trying to access a list of Layers from a WMS, but instead of getting all of the layers in a treelike structure, I am getting all of them in a flat hierarchy.
WmsLayer.getLayerNames();
Will return all of the layers. But I am only interested in the fist level, not all of them.
I am using this free french service: https://api2.geofoncier.fr/api/referentielsoge/wxs
Opening it in QGIS will show a nested structure. I am looking for something similar, to allow the user to select a group of layers and hiding the nested layers within, instead of all of the layers in a flat hierarchy.
If a nested structure is not possible, is there any way I can know which layers belongs to what, and if they are a layer group?
Thank you kindly.