The issue is with workspace specific styles. The way the server is configured with the ned style in the usgs workspace so to access it you must go through the workspace endpoint.
There are a couple of open issue to fix this by allowing workspace specific styles to be addressed through the global endpoint the same way layers are.
Good call Justin, but that leaves us with a bit of a gap for WMS clients (which just follow what is listed in the GetCapabilities document). Neither of the issues quite capture that…
As for a fix the GetCapabilities document can either list the correctly (i.e. with namespace), or we can fix GetMap to select a style from the the list provided in the GetCapabilities document.
The issue is with workspace specific styles. The way the server is configured with the ned style in the usgs workspace so to access it you must go through the workspace endpoint.
There are a couple of open issue to fix this by allowing workspace specific styles to be addressed through the global endpoint the same way layers are.
" 7.2.3.4 STYLES
The required STYLES parameter lists the style in which each layer is to be rendered.
The value of the STYLES parameter is a comma-separated list of one or more valid style
names. There is a one-to-one correspondence between the values in the LAYERS
parameter and the values in the STYLES parameter. Each map in the list of LAYERS is
drawn using the corresponding style in the same position in the list of STYLES. Each
style Name shall be one that was defined in the element of a element
that is either directly contained within, or inherited by, the associated element in
Capabilities XML. (In other words, the Client may not request a Layer in a Style that
was only defined for a different Layer.) A server shall throw an exception
(code=StyleNotDefined) if an unadvertised Style is requested."
Based on this, Kosmo seems to do the right thing. The advertised GetMap url is
and the name of the “ned” style is
ned
There is no way for Kosmo to know the other GetMap url that would work with the ned style.
Is this only a misconfiguration on the demo.opengeo.org site or is it a Geoserver issue that such configuration is possible to do? I already wrote to Kosmo developer that in order to make the WMS client robust there should be an option to force it to use an empty &STYLES= parameter.
-Jukka Rahkonen-
···
> Jody Garnett
> On Tue, Feb 4, 2014 at 11:25 AM, Justin Deoliveira <[jdeolive@anonymised.com39...](mailto:jdeolive@anonymised.com)> wrote:
> Hey Jukka,
>
> The issue is with workspace specific styles. The way the server is configured with the ned style in the usgs workspace so to access it you must go through the workspace endpoint.
>
> [http://demo.opengeo.org/geoserver/usgs/wms?SERVICE=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1057&HEIGHT=651&LAYERS=usgs%3Aned&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-78.52151213505567,38.42717463475659,-76.21556048045355,39.84739651474333&SRS=EPSG:4326&STYLES=ned](http://demo.opengeo.org/geoserver/usgs/wms?SERVICE=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1057&HEIGHT=651&LAYERS=usgs%3Aned&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-78.52151213505567,38.42717463475659,-76.21556048045355,39.84739651474333&SRS=EPSG:4326&STYLES=ned)
>
> Should work.
>
> There are a couple of open issue to fix this by allowing workspace specific styles to be addressed through the global endpoint the same way layers are.
>
> [https://jira.codehaus.org/browse/GEOS-6026](https://jira.codehaus.org/browse/GEOS-6026)
> [https://jira.codehaus.org/browse/GEOS-6214](https://jira.codehaus.org/browse/GEOS-6214)
>
> -Justin
On Mon, Feb 3, 2014 at 4:50 PM, Jody Garnett <[jody.garnett@anonymised.com](mailto:jody.garnett@anonymised.com)> wrote:
> I often use styles when choosing between named styles. Still this appears not to be working - Did you want to report an issue?
>
> The "ned" style does exist:
>
> [http://demo.opengeo.org/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=ned](http://demo.opengeo.org/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=ned)
>
> But it appears to be some kind of raster style, is that what you expected?
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> [http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk](http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk)
> _______________________________________________
> Geoserver-devel mailing list
> [Geoserver-devel@lists.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)
> [https://lists.sourceforge.net/lists/listinfo/geoserver-devel](https://lists.sourceforge.net/lists/listinfo/geoserver-devel)
--
**Justin Deoliveira**
Vice President, Engineering | Boundless
[jdeolive@anonymised.com](mailto:jdeolive@anonymised.com)
[@j_deolive](https://twitter.com/j_deolive)
Jody Garnett
On Tue, Feb 4, 2014 at 8:51 AM, Rahkonen Jukka (Tike) <[jukka.rahkonen@anonymised.com](mailto:jukka.rahkonen@anonymised.com)> wrote:
> Hi,
>
> This brings an image
> [http://demo.opengeo.org/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1057&HEIGHT=651&LAYERS=usgs%3Aned&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-78.52151213505567,38.42717463475659,-76.21556048045355,39.84739651474333&SRS=EPSG:4326&STYLES=](http://demo.opengeo.org/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1057&HEIGHT=651&LAYERS=usgs%3Aned&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-78.52151213505567,38.42717463475659,-76.21556048045355,39.84739651474333&SRS=EPSG:4326&STYLES=)
>
> This doesn't
> [http://demo.opengeo.org/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1057&HEIGHT=651&LAYERS=usgs%3Aned&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-78.52151213505567,38.42717463475659,-76.21556048045355,39.84739651474333&SRS=EPSG:4326&STYLES=ned](http://demo.opengeo.org/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1057&HEIGHT=651&LAYERS=usgs%3Aned&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-78.52151213505567,38.42717463475659,-76.21556048045355,39.84739651474333&SRS=EPSG:4326&STYLES=ned)
>
> However, GetCapabilities show for
>
> usgs:ned
> ...
>
> ned
> A boring default style
> A sample style for rasters
>
> image/png
>
>
>