Search code examples
geoserver

How to get list of layers from geoserver


Is it possible to get a list of all the layers served by geoserver? I.e. is there some specific url request to send that does this?


Solution

  • The capabilities links on the geoserver home page each list layers served via various services:

    • the WMS capabilities lists layers that support requests for tiled images
    • the WFS capabilities lists layers that support requests for vector data
    • the WCS capabilities lists layers that support raster queries

    A sample WMS request would look like this:

    http://demo.opengeo.org/geoserver/wms?request=GetCapabilities&service=WMS&version=1.0.0