[Geoserver-users] about layer group

Hi I have 2 questions.

1. I have a layer group which have 80 layers and there are lots of other
layers on geoserver. Now if I do wms getcapabilities on geoserver, it shows
me all 80 layers and others layers and not the layer group. what I want is
when I do getcapabilities, only the layers which are not in any layer group
come. Is it possible?

2. Now if I request the layer group as wms, I get a single image. Now if I
want to lets say 75 layers out of 80, that is 80, is it possible. I know I
can do wms request on all 75 on by one, is there some other method. I think
I can use getmap functionality, but for that I will need names of all 80
layers, so that I can call getMap on layers I want. Is there some way to do
this.

regards
pankaj bansal

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/about-layer-group-tp5096027.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

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 Pankaj,

what I want is
when I do getcapabilities, only the layers which are not in any layer group
come. Is it possible?

Yes. For any layer you don’t want appearing in GetCapabilties uncheck the “advertised” tickbox on the publishing tab. If you want to do 80 of them it’s probably easiest to change the XML using a good text editor instead.

I’m not really clear on what you want with the second part.
If you want to ask for all 80 layers as once, but not as from the layergroup, you can do it with the getmap request - just list them all after the layers= - it’s a comma delimited list of layers.

Jonathan

On 1 January 2014 20:27, pankaj123 <pankaj.bansal.jiit@anonymised.com> wrote:

Hi I have 2 questions.

  1. I have a layer group which have 80 layers and there are lots of other
    layers on geoserver. Now if I do wms getcapabilities on geoserver, it shows
    me all 80 layers and others layers and not the layer group. what I want is
    when I do getcapabilities, only the layers which are not in any layer group
    come. Is it possible?

  2. Now if I request the layer group as wms, I get a single image. Now if I
    want to lets say 75 layers out of 80, that is 80, is it possible. I know I
    can do wms request on all 75 on by one, is there some other method. I think
    I can use getmap functionality, but for that I will need names of all 80
    layers, so that I can call getMap on layers I want. Is there some way to do
    this.

regards
pankaj bansal


View this message in context: http://osgeo-org.1560.x6.nabble.com/about-layer-group-tp5096027.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Rapidly troubleshoot problems before they affect your business. Most IT
organizations don’t have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi jonathan

I disabled the "advertised" checkbox and it worked. Thanks for that. But
thing is, now layer group is also not coming. what I want is the layer
groups should come buy layers which consist groups dont come. Is this
possible somehow with getCapabilities or I need to get layer group names
separately by GET request method.

About second, lets say there is a tree like structured element list where I
show all layers added to map. I will show the layerName there I want its
layers to come as a child of layer group name.

+LayerGroup
     + |_| Layer 1
     + |_| Layer 2
     + |_| Layer 3

Every layername has a checkbox and if you uncheck it, that layer should be
gone and other layers will still be visible.

now there are 2 ways..
1. I think I will have to call getMap again and again with different
layernames whenever the user check,Uncheck any layer.
2. I will load all 80 layers separately not the layer group. If user will
check,uncheck any layer, I will get toggle its visibility.

What would be better way. Also for both these methode, I will need layer
names in a layer group. but I load a layer group as WMS layer in openlayers.
How can I do that..

I hope I am being more clear this time. I am really thankfull for all your
help.

Regards
Pankaj Bansal

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/about-layer-group-tp5096027p5096135.html
Sent from the GeoServer - User mailing list archive at Nabble.com.