I have configured a Cascade WMS in Geoserver and published some layers of this server. The Styles are shown correctly in Client Side Openlayers. But when I look at the capabilities no Online Resource is generated, so I can't get the legend URL. Also there's no menu for styles when I try to edit those layers.

Why Openlayers is rendering the layers with the correct style if there's no style in my geoserver and the GetMap request has no style key?

Someone had the same problem?


The GeoServer documentation about cascaded WMS services http://docs.geoserver.org/stable/en/user/data/cascaded/wms.html has a section "Limitations"

Layers served through an external WMS have some, but not all of the functionality of a local WMS.

  • Layers cannot be styled with SLD.
  • Alternate (local) styles cannot be used.
  • Extra request parameters (time, elevation, cql_filter, etc.) cannot be used.
  • GetLegendGraphic requests aren’t supported.
  • Image format cannot be specified. GeoServer will attempt to request PNG images, and if that fails will use the remote server’s default image format.
  • Authentication for the remote WMS isn’t supported. The remote WMS must be unsecured. (This part of documentation is old, you can give username/password of the remote WMS in the connection details)

You asked three questions:

  1. Q: Why not GetLegendGraphics link? A: It is not supported.
  2. Q: Why I can't set local styles? A: It is not supported
  3. Q: Why WMS shows correct styles even I have not set any? A: The default style of the remote WMS layer is used.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.