Hi,
I’m revisiting a question about client access to MinScaleDenominator/ MaxScaleDenominator in the style layer descriptor sld files. This is in regards to public WMS services where the client has no a priori knowledge of the applied style descriptor. I would like my browser client to provide user hints for layer boundingbox, queryable, and also visibility according to the min/max defined in the sld for a given layer. Layer bounding box and queryable are available from the GetCapabilities xml, but is there a way to access sld min/max scales from a public WMS’s default style?
For example: http://sigma.openplans.org:8080/geoserver/wms?request=getcapabilties provides information needed for queryable and coverage extents hints, but I’d also like to gray out layers that fall outside of the current view scale. If the current view scale falls inside MinScaleDenominator/ MaxScaleDenominator the layer would become available for selection. The only info available to the client from GetCapabilities is the style name and legend url.
Thanks
Randy
I believe there's a 'scalehint' element that's optional in the Capabilities document, and I think the intent is to communicate this type of information. In an ideal world we'd automatically derive it from the SLD. A less nice way would be to just let users add that tag.
But right now we don't support it. I could point you at the code if you're interested in trying to implement either route.
best regards,
Chris
Randy George wrote:
Hi,
I’m revisiting a question about client access to MinScaleDenominator/ MaxScaleDenominator in the style layer descriptor sld files. This is in regards to public WMS services where the client has no a priori knowledge of the applied style descriptor. I would like my browser client to provide user hints for layer boundingbox, queryable, and also visibility according to the min/max defined in the sld for a given layer. Layer bounding box and queryable are available from the GetCapabilities xml, but is there a way to access sld min/max scales from a public WMS’s default style?
For example: http://sigma.openplans.org:8080/geoserver/wms?request=getcapabilties provides information needed for queryable and coverage extents hints, but I’d also like to gray out layers that fall outside of the current view scale. If the current view scale falls inside MinScaleDenominator/ MaxScaleDenominator the layer would become available for selection. The only info available to the client from GetCapabilities is the style name and legend url.
Thanks
Randy
!DSPAM:1003,44ec8eab250571971556521!
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
!DSPAM:1003,44ec8eab250571971556521!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,44ec8eab250571971556521!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
Hello!
Can you tell me please, are there some changes about this problem?
Thank you.
Chris Holmes wrote:
I believe there's a 'scalehint' element that's optional in the
Capabilities document, and I think the intent is to communicate this
type of information. In an ideal world we'd automatically derive it
from the SLD. A less nice way would be to just let users add that tag.
But right now we don't support it. I could point you at the code if
you're interested in trying to implement either route.
best regards,
Chris
Randy George wrote:
Hi,
I’m revisiting a question about client access to
MinScaleDenominator/ MaxScaleDenominator in the style layer descriptor
sld files. This is in regards to public WMS services where the client
has no a priori knowledge of the applied style descriptor. I would like
my browser client to provide user hints for layer boundingbox,
queryable, and also visibility according to the min/max defined in the
sld for a given layer. Layer bounding box and queryable are available
from the GetCapabilities xml, but is there a way to access sld min/max
scales from a public WMS’s default style?
For example:
http://sigma.openplans.org:8080/geoserver/wms?request=getcapabilties
provides information needed for queryable and coverage extents hints,
but I’d also like to gray out layers that fall outside of the current
view scale. If the current view scale falls inside MinScaleDenominator/
MaxScaleDenominator the layer would become available for selection. The
only info available to the client from GetCapabilities is the style name
and legend url.
Thanks
Randy
!DSPAM:1003,44ec8eab250571971556521!
------------------------------------------------------------------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
!DSPAM:1003,44ec8eab250571971556521!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,44ec8eab250571971556521!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
email;internet:cholmes@anonymised.com
title:VP, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://www.nabble.com/Re%3A-Style-SLD-scale-hints-tf2153701.html#a12750993
Sent from the GeoServer - User mailing list archive at Nabble.com.
smoke ha scritto:
Hello!
Can you tell me please, are there some changes about this problem?
Nope, nothing happened.
I would also like to point out a couple of threads here:
http://deegree.sourceforge.net/deegree1.x.x_javadoc/org/deegree/services/wms/capabilities/ScaleHint.html
http://lists.dmsolutions.ca/pipermail/mapserver-users/2004-January/015485.html
http://chris.narx.net/2006/08/09/wms-scalehint-fun-and-games/
Long story short, it seems there's not even an agreement
on how to compute it usefully...
Cheers
Andrea