[Geoserver-users] GetCapabilities Filter by Layer

Hi all,

I am investigating possibilities of virtual-services as described on http://docs.geoserver.org/latest/en/user/services/virtual-services.html#filtering-by-layer

Im a testing on a local instance running in Jetty

The request filters perfectly for WFS:

http://145.45.11.10:9090/geoserver/topp/states/wfs?request=GetCapabilities

But returns all layers on:

http://145.45.11.10:9090/geoserver/topp/states/wms?request=GetCapabilities

Am I doing something wrong or is this a bug? My geoserver is:2.4.0 6ca656addbb3fa3b47cc409b6d035f90e04c11f9

Kind regards,

Milo van der Linden

Hello Milo,

As I understand (and I may be wrong considering Im new to geoserver and "stuff"), the GetCapabilities directive is meant to retrieve the capabilities of the WMS server as a whole. It means you cannot retrieve individual layer information using it. It infact returns all the info about the WMS Server: datums; version and all the layers its offered by the service. This way it doesn't really matter if you specify a layer direction in the URL, it will just display the same information regardless.

Please someone else corrects me if I said something wrong.

Salute,

Rodrigo

Em 07/10/2013 10:44, Milo van der Linden escreveu:

Hi all,

I am investigating possibilities of virtual-services as described on http://docs.geoserver.org/latest/en/user/services/virtual-services.html#filtering-by-layer

Im a testing on a local instance running in Jetty

The request filters perfectly for WFS:
http://145.45.11.10:9090/geoserver/topp/states/wfs?request=GetCapabilities

But returns all layers on:

http://145.45.11.10:9090/geoserver/topp/states/wms?request=GetCapabilities

Am I doing something wrong or is this a bug? My geoserver is:2.4.0 Revision 6ca656addbb3fa3b47cc409b6d035f90e04c11f9

Kind regards,

Milo van der Linden

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk

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

--
Rodrigo Nascimento Hernandez MinasAmbiente Eng. LTDA http://www.minasambiente.com.br (31) 2551-5452 (31) 9188-4986

Hi Both

@Rodrigo,
I believe in this case you’re wrong. Fundamentally you’re right in that that is the purpose of GetCapabilities, but per the page Milo linked, GeoServer does allow filtering, either by workspace, or apparently even by layer (I’ve not done it myself). The notion is that you can use these as “virtual services”.

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.

···

@Milo,
Having just tested it, this does work for me (Using both GeoServer 2.3.5 and 2.4.0)

This returns all layers within a workspace
http://wppgeog3:8082/geoserver/OS_Rasters/wms?request=GetCapabilities

This returns one specific layer within a workspace
http://wppgeog3:8082/geoserver/OS_Rasters/250000_Colour/wms?request=GetCapabilities

As noted, both work fine and return the correct GetCapabilities subset.

I’m not sure why you’d get all of the results.

Jonathan

On 7 October 2013 17:45, Rodrigo Nascimento Hernandez <rodrigo@anonymised.com> wrote:

Hello Milo,

As I understand (and I may be wrong considering Im new to geoserver and “stuff”), the GetCapabilities directive is meant to retrieve the capabilities of the WMS server as a whole. It means you cannot retrieve individual layer information using it. It infact returns all the info about the WMS Server: datums; version and all the layers its offered by the service. This way it doesn’t really matter if you specify a layer direction in the URL, it will just display the same information regardless.

Please someone else corrects me if I said something wrong.

Salute,

Rodrigo

Em 07/10/2013 10:44, Milo van der Linden escreveu:

Hi all,

I am investigating possibilities of virtual-services as described on http://docs.geoserver.org/latest/en/user/services/virtual-services.html#filtering-by-layer

Im a testing on a local instance running in Jetty

The request filters perfectly for WFS:

http://145.45.11.10:9090/geoserver/topp/states/wfs?request=GetCapabilities

But returns all layers on:

http://145.45.11.10:9090/geoserver/topp/states/wms?request=GetCapabilities

Am I doing something wrong or is this a bug? My geoserver is:2.4.0 6ca656addbb3fa3b47cc409b6d035f90e04c11f9

Kind regards,

Milo van der Linden

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
[http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk](http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk)
_______________________________________________
Geoserver-users mailing list
[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)


Rodrigo Nascimento Hernandez MinasAmbiente Eng. LTDA http://www.minasambiente.com.br (31) 2551-5452 (31) 9188-4986


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk


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