Hi Jimmy:
Why don’t you try to include the parameter “FEATURE_COUNT” in your request?
It could be like this:
http://192.168.51.84:8080/geoserver/wms?LAYERS=secheresse,sismique&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=491948.71398223,5376121.9466647,858234.95345919,5547646.6381059&X=494&Y=334&INFO_FORMAT=text/plain&QUERY_LAYERS=secheresse,sismique&FEATURE_COUNT=100&WIDTH=1198&HEIGHT=561
At least is what I do to obtain results from all layers, I hope it works.
Regards,
José Miguel Rubio
De: Jimmy Aumard [mailto:jimmy.aumard@anonymised.com]
Enviado el: jueves, 25 de junio de 2009 11:58
Para: geoserver-users@anonymised.comsourceforge.net
Asunto: [Geoserver-users] WMS getfeatureIfo on multiple layers
Hello,
I try to make a wms request on multiple layers but geoserver awnsered for one layer.
This is my request:
http://192.168.51.84:8080/geoserver/wms?LAYERS=secheresse,sismique&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=491948.71398223,5376121.9466647,858234.95345919,5547646.6381059&X=494&Y=334&INFO_FORMAT=text/plain&QUERY_LAYERS=secheresse,sismique&WIDTH=1198&HEIGHT=561
and my result :
Results for FeatureType 'secheresse_alea_faible_dpt_04':
--------------------------------------------
id = 0
alea = FAIBLE
dpt = 04
the_geom = [GEOMETRY (MultiPolygon) with 439882 points]
--------------------------------------------
Thanks
Jim
Thanks!!!
It’s works with the FEATURE_COUNT ^^
Now I know 
Thanks
Jim
2009/6/26 Andrea Aime <aaime@anonymised.com…1671…>
Rubio Iglesias José Miguel ha scritto:
Hi Jimmy:
Why don’t you try to include the parameter “FEATURE_COUNT” in your request?
It could be like this:
http://192.168.51.84:8080/geoserver/wms?LAYERS=secheresse,sismique&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=491948.71398223,5376121.9466647,858234.95345919,5547646.6381059&X=494&Y=334&INFO_FORMAT=text/plain&QUERY_LAYERS=secheresse,sismique&FEATURE_COUNT=100&WIDTH=1198&HEIGHT=561 <http://192.168.51.84:8080/geoserver/wms?LAYERS=secheresse,sismique&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=491948.71398223,5376121.9466647,858234.95345919,5547646.6381059&X=494&Y=334&INFO_FORMAT=text/plain&QUERY_LAYERS=secheresse,sismique&FEATURE_COUNT=100&WIDTH=1198&HEIGHT=561>
At least is what I do to obtain results from all layers, I hope it works.
Good catch. The default for feature_count is 1 by WMS spec, so if you don’t add it you’ll always get back only one result.
Cheers
Andrea