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.

Jody Garnett


On Tue, Feb 4, 2014 at 11:25 AM, Justin Deoliveira <
[email protected]> 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
>
> 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-6214
>
> -Justin
>
>
>
>
> On Mon, Feb 3, 2014 at 4:50 PM, Jody Garnett <[email protected]>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
>>
>> But it appears to be some kind of raster style, is that what you expected?
>>
>>
>>
>> Jody Garnett
>>
>>
>> On Tue, Feb 4, 2014 at 8:51 AM, Rahkonen Jukka (Tike) <
>> [email protected]> 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=
>>>
>>> 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
>>>
>>> However, GetCapabilities show for
>>> <Layer queryable="1">
>>>         <Name>usgs:ned</Name>
>>> ...
>>> <Style>
>>>           <Name>ned</Name>
>>>           <Title>A boring default style</Title>
>>>           <Abstract>A sample style for rasters</Abstract>
>>>           <LegendURL width="20" height="20">
>>>             <Format>image/png</Format>
>>>             <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink";
>>> xlink:type="simple" xlink:href="
>>> http://demo.opengeo.org/geoserver/wms?request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ned<http://demo.opengeo.org/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=ned>
>>> "/>
>>> </LegendURL>
>>> </Style>
>>>
>>> So what goes wrong? I have never really seen any client to use anything
>>> else than empty &STYLES= but now with this service Kosmo GIS is
>>> automatically adding arverticed styles into GetMaps which meand that it
>>> does not get maps from the service. Similar response from
>>>
>>> http://demo.opengeo.org/geoserver/wms?SERVICE=WMS&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=1057&HEIGHT=651&LAYERS=ne%3Ane_10m_admin_1_states_provinces_lines_shp&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-78.52151213505567,38.42717463475659,-76.21556048045355,39.84739651474333&SRS=EPSG:4326&STYLES=states_provinces_lines
>>>
>>> -Jukka Rahkonen-
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>> _______________________________________________
>>> Geoserver-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> _______________________________________________
>> Geoserver-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>>
>>
>
>
> --
> *Justin Deoliveira*
> Vice President, Engineering | Boundless
> [email protected]
> @j_deolive <https://twitter.com/j_deolive>
>
------------------------------------------------------------------------------
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
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to