[Geoserver-users] Layergroup missing from WMS GetCapabilities

Hi List,
I have 8 layergroups on my server (2.3.5). But my WMS GetCapabilities is only returning 7 of them.

Layergroups don’t have an “advertised” or an “enabled”, and I’m not aware of any way to make them disappear, so where has my eighth layergroup gone? It works fine and is used as part of another one of those layergroups (as are several others, so it’s not the fact it’s nested). It’s just not listed for some reason.

Applies to both 1.1 and 1.3.

Thoughts?

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

I am sure, if this has anything to do with layergroups, but with layers I have noticed one thing.

Layer names must be one word. So not “my layer” but “mylayer, my_layer, my-layer etc.” Maybe one of the layergoup layers is not visible, and that prevents the whole layergroup from being visible in GetCapabilities xml.

Oiva Hakala


Lähettäjä: Jonathan Moules [jonathanmoules@anonymised.com]
Lähetetty: 16. lokakuuta 2013 13:42
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Layergroup missing from WMS GetCapabilities

Hi List,
I have 8 layergroups on my server (2.3.5). But my WMS GetCapabilities is only returning 7 of them.

Layergroups don’t have an “advertised” or an “enabled”, and I’m not aware of any way to make them disappear, so where has my eighth layergroup gone? It works fine and is used as part of another one of those layergroups (as are several others, so it’s not the fact it’s nested). It’s just not listed for some reason.

Applies to both 1.1 and 1.3.

Thoughts?

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Hi Oiva,
Thanks for getting back to me.

All my layer names are one-word; in fact they’re all the name of the database table they come from. Layergroups are also all one word.

Also, having just double checked, all layers that are a member of the group are both enabled and advertised.

The weird thing is of course, that this layer group is itself used in another layergroup, and it works just fine in there (and that layergroup appears in the GetCapabilities too).

···

On 17 October 2013 12:26, Hakala Oiva (MTT) <oiva.hakala@anonymised.com> wrote:

I am sure, if this has anything to do with layergroups, but with layers I have noticed one thing.

Layer names must be one word. So not “my layer” but “mylayer, my_layer, my-layer etc.” Maybe one of the layergoup layers is not visible, and that prevents the whole layergroup from being visible in GetCapabilities xml.

Oiva Hakala


Lähettäjä: Jonathan Moules [jonathanmoules@anonymised.com]
Lähetetty: 16. lokakuuta 2013 13:42
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] Layergroup missing from WMS GetCapabilities

Hi List,
I have 8 layergroups on my server (2.3.5). But my WMS GetCapabilities is only returning 7 of them.

Layergroups don’t have an “advertised” or an “enabled”, and I’m not aware of any way to make them disappear, so where has my eighth layergroup gone? It works fine and is used as part of another one of those layergroups (as are several others, so it’s not the fact it’s nested). It’s just not listed for some reason.

Applies to both 1.1 and 1.3.

Thoughts?

Thanks,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

On Thu, Oct 17, 2013 at 1:40 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

Hi Oiva,
Thanks for getting back to me.

All my layer names are one-word; in fact they're all the name of the
database table they come from. Layergroups are also all one word.

Also, having just double checked, all layers that are a member of the
group are both enabled and advertised.

The weird thing is of course, that this layer group is itself used in
another layergroup, and it works just fine in there (and that layergroup
appears in the GetCapabilities too).

Ah, if it's part of another layer group, it should only show up below the
parent layer group, but not by itself

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

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

Hi Andrea,
Ok, then this is more confusing. My 8 layer groups are as follows:

Conwy_MasterMap
OS_MasterMap_Group_VML_Style (the missing one)
OS_Meridian_Group
OS_Strategi_Group
OS_VMD_Group
OS_VML_Group
z_OS_Raster_Basemap
z_OS_Vector_Basemap

However, most of them are actually nested inside z_OS_Vector_Basemap:
Inline images 1

So only three are un-nested:

  • z_OS_Raster_Basemap

  • z_OS_Vector_Basemap

  • Conwy_MasterMap

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

What you seem to be saying is that I should only see those three layers. But I’m seeing 7/8ths of them.

On 17 October 2013 12:57, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Thu, Oct 17, 2013 at 1:40 PM, Jonathan Moules <jonathanmoules@anonymised.com> wrote:

Jonathan

Hi Oiva,
Thanks for getting back to me.

All my layer names are one-word; in fact they’re all the name of the database table they come from. Layergroups are also all one word.

Also, having just double checked, all layers that are a member of the group are both enabled and advertised.

The weird thing is of course, that this layer group is itself used in another layergroup, and it works just fine in there (and that layergroup appears in the GetCapabilities too).

Ah, if it’s part of another layer group, it should only show up below the parent layer group, but not by itself

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


On Thu, Oct 17, 2013 at 2:47 PM, Jonathan Moules <
jonathanmoules@anonymised.com> wrote:

Hi Andrea,
Ok, then this is more confusing. My 8 layer groups are as follows:

Eh... I might well be wrong about this, just going by memory, I'd have to
inspect the code to check
what the actual intended nesting rules are, but have not time right now

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

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

Hi Andrea,
Ok. But given that it is being inconsistent either way, something doesn’t seem right. But not knowing being able to idenfity the cause, I can’t really report it as a bug beyond a vague “it’s broken”.

If anyone has any insights, I’ll hopefully be able to come up with a better bug report.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 17 October 2013 13:51, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Thu, Oct 17, 2013 at 2:47 PM, Jonathan Moules <jonathanmoules@anonymised.com> wrote:

Hi Andrea,
Ok, then this is more confusing. My 8 layer groups are as follows:

Eh… I might well be wrong about this, just going by memory, I’d have to inspect the code to check
what the actual intended nesting rules are, but have not time right now

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