[OpenLayers-Users] Dealing with large number of WMS layers

Dragan Podvezanec dragan.podvezanec at gmail.com
Tue Jun 15 01:49:57 EDT 2010


Hi all.

I'm having a map with 350 different layers (Geoserver WMS connected to
database).

I tried to use few approaches how to show such big number of layers, and I'm
having problem with all of them, so I would need some advice how to do this:

1. Using layer groups at Geoserver
- I can't use this approach, because user must see any combination of those
350 layers. So I can't make layer groups for all combinations

2. Every layer in it's own request
- also impossible: when user turns on more than 40 layers, this is 40
requests and 40 images to fetch from WMS. It gets very slow and unresponsive

3. Single WMS request with filters 
- this is only way that works: single WMS request with CQL filters, like
this:
...&CQL_FILTER=((ID=1)AND(ID=2))... and so on

This is ok so far, but I'm hitting the URL length limit, and with few more
layers, this will also not work anymore.

So, do you have any other ideas how to deal with this problem ?




-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dealing-with-large-number-of-WMS-layers-tp5180575p5180575.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list