Thanks for your reply Andrea

 

I've just had a look and I think the same issue is present in the
Geoserver demo data without having to make any changes.

 

The 3 layer groups (tasmania, tiger-ny, spearfish) all seem to be set up
in the same way, as far as I can see, as Single layer groups... 

 

Tasmania appears only as a group in the capabilities but tiger-ny and
spearfish also list their separate layers as well as having a group
entry.

 

Adding container groups into the mix...

 

I created a container group and added the Tasmania group to it. This
resulted in the Tasmania group appearing under container group and also
under the root.

 

I then created a second container group and added the tiger-ny group to
it. This resulted in tiger-ny appearing only under the container group
and not in the root, correct behaviour. However all of the components of
tiger-ny still show up as individual layers under the root.

 

Interestingly, if I then go into one of the tiger-ny layers and uncheck
the Advertised box so the layer doesn't show up on it's own, the
tiger-ny group then appears under the root as well as under the group...

 

Hope this helps with debugging and makes more sense to you than me!

 

Thanks


Tom

 

 

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of
Andrea Aime
Sent: 14 November 2013 13:09
To: Thomas Colley; Mauro Bartolomeoli
Cc: GeoServer Mailing List List
Subject: Re: [Geoserver-users] Layer groups in capabilities

 

On Thu, Nov 14, 2013 at 12:48 PM, Thomas Colley
<[email protected]> wrote:

Hi

Should Single layer groups that are added to a Container Tree layer
group still also appear in the root of the capabilities document?

 

Hmm... don't think we discussed what should happen when the new layer

tree modes were implemented, but my feeling that it should not appear

 

        
        One single group that I have set up and then added to a
container group
        shows up only once in the capabilities, another that I have set
up in
        the same way appears twice, once in the root and once inside the
        container.

 

Weird. Might be a bug, it would help if you could reproduce the problem

with a vanilla data dir (the default one that ships with GeoServer)

and share steps to reproduce it, or share the data dir itself.

 

One thing though... which version of GeoServer are you using? 

Mauro made some fixes to layer group handling, I believe they only 

landed in the 2.4.x series

 

        
        I'd expect only showing up once to be the correct behaviour but
reading
        the Geoserver docs suggests that single groups might show up
twice?
        
        "In case a layer is included in a any non single group it won't
be
        listed anymore in the flat layer list, although it will still be
        possible to include the same layer in different layer groups."

 

Yes, if you include it in different groups, it will appear multiple
times,

one per parent group, but not in the root.

 

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

 

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

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to