Hi Justin
Yes you've understood correctly. I noticed that Styler showed the scale when
zooming in and out and this solved my problem. I just wondered if there was
a more scientific way of working it out.
I also noticed that when I displayed the scale in OpenLayers that the scale
was slightly different to the one shown in Styler, is there some kind of
'factor' I need to take into account? I seem to remember seeing a figure of
0.90 somewhere?
Regards
Simon
-----Original Message-----
From: Justin Deoliveira [mailto:jdeolive@anonymised.com]
Sent: 02 October 2009 13:31
To: sc
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] How to determine MinScaleDenominator and
MaxScaleDenominator to use in SLD
Hi Simon,
I am not sure if I completely understand your problem... but you should
be able to configure openlayers to show you what scale you are at. Then
when you zoom around you can take values from the scale and plug them
into your SLD.
-Justin
sc wrote:
Hi All
I've just started using GeoServer, GeoWebCache and Openlayers but I do
not understand how to determine the MinScaleDenominator and
MaxScaleDenominator to use in my layers SLD file.
My OpenLayers map uses Google Maps as the base layer and i have a
shapefile stored in GeoServer that houses the points I want to overlay.
If I use the default 'point' style supplied with GeoServer the points
display algeol of the time as I expect, but I would like to change their
style at different zoom levels but I can't find a way of linking the
zoom in OpenLayers to the scale in GeoServer.
I think that I am on the right lines but could do with a steer in the
right direction. I've seen an example SLD at
http://edit.csic.es/SLD/GMapExample.sld.xml but these scales do not seem
to work for me.
Any help would be greatly appreciated.
Regards
Simon
------------------------------------------------------------------------
----------------------------------------------------------------------------
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register
now!
http://p.sf.net/sfu/devconf
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.