How to get list of layers from geoserver

filinep picture filinep · Oct 6, 2010 · Viewed 12.9k times · Source

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?

Answer

David Winslow picture David Winslow · Oct 7, 2010

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