[Geoserver-devel] Does GetStyles work in Geoserver 2.12?

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-

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:

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) <jukka.rahkonen@anonymised.com> 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
Geoserver-devel@anonymised.com.366…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

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

No such operation wms 1.3.0 GetStyles

If that is intentional I will close

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

-Jukka-

···

Lähettäjä: Torben Barsballe tbarsballe@anonymised.com
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:

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) <jukka.rahkonen@anonymised.com> 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
Geoserver-devel@anonymised.com.366…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel