[Geoserver-users] Default WMS Path for Layer Groups

Hi Everyone

I’ve had a look but can’t figure out if there’s a way to set a default WMS path for layer groups in the same way as you can for layers.

I’m building a tree in OpenLayers using a WMSCapabilitiesLoader that uses the default WMS path to form the tree structure. It would be great if I could get the groups to sit properly in the tree alongside the single layers.

Thanks

Tom

On Mon, Oct 21, 2013 at 2:18 PM, Thomas Colley <
it087@anonymised.com> wrote:

Hi Everyone****

** **

I’ve had a look but can’t figure out if there’s a way to set a default WMS
path for layer groups in the same way as you can for layers.****

** **

I’m building a tree in OpenLayers using a WMSCapabilitiesLoader that uses
the default WMS path to form the tree structure. It would be great if I
could get the groups to sit properly in the tree alongside the single
layers.

I believe what you want can be done starting with GeoServer 2.3.0, from
that version the wms path property
has been dropped and layer groups can be used to organize the layer tree in
different ways,
you can nest them and expose their structure:

http://docs.geoserver.org/latest/en/user/webadmin/data/layergroups.html

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

That does exactly what I wanted, thanks very much Andrea. I had looked at the different layer groups before but hadn’t registered what they were for.

In 2.3.4 the Default WMS Path is still there under the publishing tab, is that going to be removed now if it’s just duplicating the layer groups functionality that is much more powerful?

Thanks again

Tom

From: andrea.aime@anonymised.com [mailto:andrea.aime@anonymised.com] On Behalf Of Andrea Aime
Sent: 22 October 2013 16:23
To: Thomas Colley
Cc: GeoServer Mailing List List
Subject: Re: [Geoserver-users] Default WMS Path for Layer Groups

I believe what you want can be done starting with GeoServer 2.3.0, from that version the wms path property

has been dropped and layer groups can be used to organize the layer tree in different ways,

you can nest them and expose their structure:

http://docs.geoserver.org/latest/en/user/webadmin/data/layergroups.html

Cheers

Andrea

==

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

http://www.geo-solutions.it

http://twitter.com/geosolutions_it