[Geoserver-users] Scale Thresholds - how to get

Hi,

Just a guess, but see what you get with WMS GetStyles.

-Jukka Rahkonen

···

Jonathan Moules wrote:

Hi List,

I have a number of layers that have scale denominators (aka, scale thresholds) in their styles and these work correctly.

My question is - is there a way for me to find out from the WMS what these scale denominators are? They don’t appear to show up in a GetCapabilities request or a WMS 1.1.1 “describeLayer” request. I can’t see anything obvious in the spec (ctrl-f for “scale” and “denominator”).

Anyone have any ideas if this is possible?

Thanks,

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Thanks Jukka. That looks like it should do something useful, but it doesn’t seem to work.

Reading the SLD 1.0.0 specs I think the following should do it:

http://wppgeog3:8082/geoserver/wms?request=getStyles&version=1.3.0&layers=OS_Rasters:25000_Colour

But I get a xml failure (WMS 1.0.0, 1.1.0 or 1.3.0):

No such operation wms 1.1.0 getStyles

There doesn’t seem to be a demo URL in the demo’s list for me to work from.

Anyone know how to use this?
Thanks,
Jonathan

On 1 February 2013 14:31, Rahkonen Jukka <Jukka.Rahkonen@…486…> wrote:

Hi,

Just a guess, but see what you get with WMS GetStyles.

-Jukka Rahkonen

Jonathan Moules wrote:

Hi List,

I have a number of layers that have scale denominators (aka, scale thresholds) in their styles and these work correctly.

My question is - is there a way for me to find out from the WMS what these scale denominators are? They don’t appear to show up in a GetCapabilities request or a WMS 1.1.1 “describeLayer” request. I can’t see anything obvious in the spec (ctrl-f for “scale” and “denominator”).

Anyone have any ideas if this is possible?

Thanks,

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

Hi,

Why not to include &service=wms in the request?

http://localhost:8080/geoserver/ows?service=wms&version=1.1.1&request=getstyles&layers=states

http://localhost:8080/geoserver/ows?service=wms&version=1.1.1&request=getstyles&layers=Img_Sample

-Jukka-

···

Lähettäjä: Jonathan Moules [mailto:jonathanmoules@anonymised.com]
Lähetetty: 1. helmikuuta 2013 17:03
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Scale Thresholds - how to get

Thanks Jukka. That looks like it should do something useful, but it doesn’t seem to work.

Reading the SLD 1.0.0 specs I think the following should do it:

http://wppgeog3:8082/geoserver/wms?request=getStyles&version=1.3.0&layers=OS_Rasters:25000_Colour

But I get a xml failure (WMS 1.0.0, 1.1.0 or 1.3.0):

No such operation wms 1.1.0 getStyles

There doesn’t seem to be a demo URL in the demo’s list for me to work from.

Anyone know how to use this?

Thanks,

Jonathan

On 1 February 2013 14:31, Rahkonen Jukka <Jukka.Rahkonen@anonymised.com6…> wrote:

Hi,

Just a guess, but see what you get with WMS GetStyles.

-Jukka Rahkonen

Jonathan Moules wrote:

Hi List,

I have a number of layers that have scale denominators (aka, scale thresholds) in their styles and these work correctly.

My question is - is there a way for me to find out from the WMS what these scale denominators are? They don’t appear to show up in a GetCapabilities request or a WMS 1.1.1 “describeLayer” request. I can’t see anything obvious in the spec (ctrl-f for “scale” and “denominator”).

Anyone have any ideas if this is possible?

Thanks,

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

I was basing it on the demo URL’s. None of them have the “&service=wms”. They all have “/geoserver/wms?” instead.

It does work with &service=wms. But doesn’t with the “/geoserver/wms?”.

Should they both act identically? I’d never even noticed they were different before.

Thanks,
Jonathan

On 1 February 2013 15:12, Rahkonen Jukka <Jukka.Rahkonen@anonymised.com> wrote:

Hi,

Why not to include &service=wms in the request?

http://localhost:8080/geoserver/ows?service=wms&version=1.1.1&request=getstyles&layers=states

http://localhost:8080/geoserver/ows?service=wms&version=1.1.1&request=getstyles&layers=Img_Sample

-Jukka-

Lähettäjä: Jonathan Moules [mailto:jonathanmoules@anonymised.com4942…]
Lähetetty: 1. helmikuuta 2013 17:03
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Scale Thresholds - how to get

Thanks Jukka. That looks like it should do something useful, but it doesn’t seem to work.

Reading the SLD 1.0.0 specs I think the following should do it:

http://wppgeog3:8082/geoserver/wms?request=getStyles&version=1.3.0&layers=OS_Rasters:25000_Colour

But I get a xml failure (WMS 1.0.0, 1.1.0 or 1.3.0):

No such operation wms 1.1.0 getStyles

There doesn’t seem to be a demo URL in the demo’s list for me to work from.

Anyone know how to use this?

Thanks,

Jonathan

On 1 February 2013 14:31, Rahkonen Jukka <Jukka.Rahkonen@anonymised.com> wrote:

Hi,

Just a guess, but see what you get with WMS GetStyles.

-Jukka Rahkonen

Jonathan Moules wrote:

Hi List,

I have a number of layers that have scale denominators (aka, scale thresholds) in their styles and these work correctly.

My question is - is there a way for me to find out from the WMS what these scale denominators are? They don’t appear to show up in a GetCapabilities request or a WMS 1.1.1 “describeLayer” request. I can’t see anything obvious in the spec (ctrl-f for “scale” and “denominator”).

Anyone have any ideas if this is possible?

Thanks,

Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.