[Geoserver-users] Activate layer by zoom - SLD

Hi people,

I'm very very new to SLD (just read some documentation so far) and now I
need to create a SLD that activate and deactivate a layer according to the
zoom level.

I have a layer (points) with more than 18.000 points just in a small area
(around 20 km wide).

Could you give some examples or links, please?

Thank you in advance!
--
View this message in context: http://old.nabble.com/Activate-layer-by-zoom---SLD-tp28903447p28903447.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

You can show and hide faetures in side the layer according to scales.
Did you try using Scale Denomiators?

you might find your answer here ..scroll down to the zoom based point part

http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/points.html

regards,
Imran

On Wed, Jun 16, 2010 at 7:23 PM, giraam <sdjbm17@anonymised.com> wrote:

Hi people,

I'm very very new to SLD (just read some documentation so far) and now I
need to create a SLD that activate and deactivate a layer according to the
zoom level.

I have a layer (points) with more than 18.000 points just in a small area
(around 20 km wide).

Could you give some examples or links, please?

Thank you in advance!
--
View this message in context: http://old.nabble.com/Activate-layer-by-zoom---SLD-tp28903447p28903447.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
I.R

Thanks for your reply! I found that solution too but I have a little doubt
about it.. The example shows how to change the <PointSymbolizer> according
to the zoom level but would I be able to deactivate and activate layers just
like that? I mean, I trying to NOT make a request to the server when I do
not need the points at certain zoom level in order to have a faster response
and obviously a relevant information too!

I'm still thinking about SLD as a CSS file and maybe I'm wrong!

Thanks again..!

Imran_Rajjad wrote:

Hi,

You can show and hide faetures in side the layer according to scales.
Did you try using Scale Denomiators?

you might find your answer here ..scroll down to the zoom based point part

http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/points.html

regards,
Imran

--
I.R

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://old.nabble.com/Activate-layer-by-zoom---SLD-tp28903447p28903773.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Wed, Jun 16, 2010 at 10:53 AM, giraam <sdjbm17@anonymised.com> wrote:

Thanks for your reply! I found that solution too but I have a little doubt
about it.. The example shows how to change the <PointSymbolizer> according
to the zoom level but would I be able to deactivate and activate layers just
like that? I mean, I trying to NOT make a request to the server when I do
not need the points at certain zoom level in order to have a faster response
and obviously a relevant information too!

That is the clients responsibility - there is no way GeoServer can
work out that you shouldn't make a request to it depending on your
style.

You will need to ask this question on the user list of whatever client
you are using.

Ian
--
Ian Turton

Thinking better you are totally right!!

I'll ask on OpenLayers users forum! Thanks you all for your answers!

Ian Turton wrote:

That is the clients responsibility - there is no way GeoServer can
work out that you shouldn't make a request to it depending on your
style.

You will need to ask this question on the user list of whatever client
you are using.

Ian
--
Ian Turton

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://old.nabble.com/Activate-layer-by-zoom---SLD-tp28903447p28904004.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

If you’r working with openlayers you may want familiarise youself with the API doco…

http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html

i believe you want the maxResolution / maxScale properties on your layer object.

cheers,

-i

On 16 June 2010 17:15, giraam <sdjbm17@anonymised.com> wrote:

Thinking better you are totally right!!

I’ll ask on OpenLayers users forum! Thanks you all for your answers!

Ian Turton wrote:

On Wed, Jun 16, 2010 at 10:53 AM, giraam <sdjbm17@anonymised.com> wrote:

Thanks for your reply! I found that solution too but I have a little
doubt
about it… The example shows how to change the
according
to the zoom level but would I be able to deactivate and activate layers
just
like that? I mean, I trying to NOT make a request to the server when I do
not need the points at certain zoom level in order to have a faster
response
and obviously a relevant information too!

That is the clients responsibility - there is no way GeoServer can
work out that you shouldn’t make a request to it depending on your
style.

You will need to ask this question on the user list of whatever client
you are using.

Ian

Ian Turton


ThinkGeek and WIRED’s GeekDad team up for the Ultimate
GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context: http://old.nabble.com/Activate-layer-by-zoom—SLD-tp28903447p28904004.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


ThinkGeek and WIRED’s GeekDad team up for the Ultimate
GeekDad Father’s Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users