Thanks Torben,

Should have noticed that. BTW GetStyles does not seem to be documented anywhere 
in our documentation.


What I really tried to test is if we have support for dynamic styles and 
related requests with WMS 1.3.0. It looks like we don't. Even if dynamic 
styling is allowed in WMS settings page the request


http://localhost:8080/geoserver/wms?service=wms&version=1.3.0&request=GetStyles&layers=topp:states


returns

<ServiceException code="OperationNotSupported" locator="GetStyles">
      No such operation wms 1.3.0 GetStyles
</ServiceException>


If that is intentional I will close

https://osgeo-org.atlassian.net/browse/GEOS-4605


-Jukka-


________________________________
Lähettäjä: Torben Barsballe <[email protected]>
Lähetetty: 21. syyskuuta 2017 19:53
Vastaanottaja: Rahkonen Jukka (MML)
Kopio: Geoserver-devel
Aihe: Re: [Geoserver-devel] Does GetStyles work in Geoserver 2.12?

Hi Jukka,

I think there is an error in your syntax. I tried running this in a debugger, 
and got the same NullPointerException - turns out is is being caused by a null 
layers list.
Changing the "layer" parameter to "layers" fixes this issue:

<goog_605005523>
http://demo.geo-solutions.it/geoserver/wms?service=wms&version=1.1.1&request=GetStyles&layers=topp:states

So, looks like this is still working (although the error it gives when there 
are no layers needs improving)

Torben


On Wed, Sep 20, 2017 at 1:38 PM, Rahkonen Jukka (MML) 
<[email protected]<mailto:[email protected]>>
 wrote:
Hi,

While trying to test if https://osgeo-org.atlassian.net/browse/GEOS-4605 is 
still valid I couldn't get this request to work at all:
http://localhost:8080/geoserver/ows?service=wms&version=1.1.1&request=GetStyles&layer=topp:states
Playing with the setting "Dynamic styling" on the WMS page does not help.

Can be tested also with this
http://demo.geo-solutions.it/geoserver/wms?service=wms&version=1.3.0&request=GetStyles&layer=topp:states
Result: Not supported in WMS 1.3.0
and this
http://demo.geo-solutions.it/geoserver/wms?service=wms&version=1.1.1&request=GetStyles&layer=topp:states
Result: java.lang.NullPointerException

-Jukka Rahkonen-



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to