[Geoserver-users] Wms getmap-when layers num more than 2, fault occurs.

Hi,

You can test with the default demo layers that there is no limit to max. 2. layers.

http://localhost:8080/geoserver/wms?BBOX=44.3115939344240175,-103.93616932504362182,44.55018319949628136,-103.57561215835877988&CRS=EPSG:4326&QUERY_LAYERS=topp:states,sf:streams&SERVICE=WMS&HEIGHT=714&REQUEST=GetMap&STYLES=&WIDTH=1079&VERSION=1.3.0&FORMAT=image/png&LAYERS=topp:states,sf:streams,sf:roads

I keep on suggesting to try to reproduce errors with the demo layers, it makes it so much easier for other users and developers to help with the problems. Otherwise almost automatically the readers will ask first “What kind of data you have?” and next “Could we get a sample?”.

So there must be something else failing for you. Try to find which layer makes request to fail and pay attention to possible extra parameters like styles. Rip out all that is not compulsory and do as simple requests as possible. If you have luck, the simple query works and then you are almost a winner. You can add extra parameters one by one and thus find the real reason for the trouble.

-Jukka Rahkonen-

···

Mauro Bartolomeoli

Hi,

are you also specifying other parameters such as styles or cql_filter in the wms getmap request? These usually requires that the number of values match the ones used in layers.

You are probably adding a new layer, without supplying the needed values for one of those. Could you share the complete url with 3 layers you are using?

Thanks

Mauro

2014-09-24 8:38 GMT+02:00 邓冲 <buynowdays@…95…>:

Hello, I met a problem when i use wms to get map. As there are multiple layers in server, when i create URL, i give layers three or more values, then server return “indexoutofboundsexception: Index:2, size:2 index:2,size:2”. Then i just give layers two values, like this"layers=SM:road,SM:poi", the result is good as a png picture.
So, i wanna ask two questions here: How can i use wms to get multi-layer map? Is the fault above result from wms limitation?
Any help is appreciated, thanks a lot!

发自我的 Windows Phone


Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


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