Hello,
to address performance issues with the server I am working with, one of the things I'd like to do is to publish multiple data sources with different levels of generalization depending on the scale.
So, imagine I have 3 different scale ranges: low (country scale), medium (state scale) and high (neighborhood scale). At country scale hospitals will be not rendered, at medium range it will be displayed as points and in high scale polygons will be showed.
Is it possible to configure geoserver to ask for a layer and depending on the scale it serves one or other? Is only possible to achieve that behaviour by means of openlayers/javascript?
best,
amaneiro
2011/4/27 Andrés Maneiro <amaneiro@anonymised.com>:
Hello,
to address performance issues with the server I am working with, one of
the things I'd like to do is to publish multiple data sources with
different levels of generalization depending on the scale.
So, imagine I have 3 different scale ranges: low (country scale), medium
(state scale) and high (neighborhood scale). At country scale hospitals
will be not rendered, at medium range it will be displayed as points and
in high scale polygons will be showed.
Is it possible to configure geoserver to ask for a layer and depending
on the scale it serves one or other? Is only possible to achieve that
behaviour by means of openlayers/javascript?
scale dependant SLD and a Layer group will do this - see
http://ian01.geog.psu.edu/geoserver_docs/data/naturalearth/naturalearth_physical.html
for a discussion on how I did it.
Ian
--
Ian Turton
On 04/27/2011 07:56 PM, Ian Turton wrote:
scale dependant SLD and a Layer group will do this - see
http://ian01.geog.psu.edu/geoserver_docs/data/naturalearth/naturalearth_physical.html
for a discussion on how I did it.
Ian, thanks for the very valuable example! Seems an easy way to do it. I'll try it.
best,
amaneiro