I will do that. Le ven. 29 nov. 2019 à 17:13, Gabriel Roldan <[email protected]> a écrit :
> Looks like, root reason being a difference in the FEATURE_COUNT parameter > definition between WMS 1.1.0 and 1.3.0. The former states: > > 7.3.3.7 FEATURE_COUNT FEATURE_COUNT is the maximum number of features for > which feature information should be returned. Inclusion of a value for this > attribute is optional. When included, the value must be greater than zero. > When absent, the amount of information to return is at the server's > discretion. > > Mind to create a JIRA ticket? > > Cheers, > Gabriel > > On Fri, 29 Nov 2019 at 09:20, Alexandre Gacon <[email protected]> > wrote: > >> So this is a compliance bug no ? >> >> Alexandre >> >> Le ven. 29 nov. 2019 à 13:08, Rahkonen Jukka (MML) < >> [email protected]> a écrit : >> >>> I forgot to add the corresponding part of the WMS 1.3.0 standard. Notice >>> “per layer”. >>> >>> >>> >>> 7.4.3.6 FEATURE_COUNT >>> >>> The optional FEATURE_COUNT parameter states the maximum number of >>> features per layer for which feature >>> >>> information shall be returned. Its value is a positive integer. The >>> default value is 1 if this parameter is omitted or is >>> >>> other than a positive integer. >>> >>> >>> >>> -Jukka- >>> >>> >>> >>> *Lähettäjä:* Rahkonen Jukka (MML) <[email protected]> >>> *Lähetetty:* perjantai 29. marraskuuta 2019 13.56 >>> *Vastaanottaja:* Vitor Fonseca <[email protected]>; >>> [email protected] >>> *Kopio:* geoserver-users <[email protected]> >>> *Aihe:* Re: [Geoserver-users] WMS GetFeatureInfo on several layers >>> >>> >>> >>> Hi, >>> >>> >>> >>> There may be other issues as well but I have some evidence that >>> Geoserver counts total number of features instead of features per layer. If >>> you have Geoserver running with the demo layers you can test yourself >>> >>> >>> >>> >>> http://localhost:8080/geoserver/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=topp%3Atasmania_cities%2Ctopp%3Atasmania_roads&LAYERS=topp%3Atasmania_cities%2Ctopp%3Atasmania_roads&exceptions=application%2Fvnd.ogc.se_inimage&INFO_FORMAT=text%2Fhtml&X=50&Y=50&SRS=EPSG%3A4326&STYLES=&WIDTH=101&HEIGHT=101&BBOX=146.173095703125%2C-43.96728515625001%2C148.392333984375%2C-41.74804687500001 >>> >>> >>> >>> Query returns 1 feature from Tasmania_cities only. Now add >>> &feature_count=10 >>> >>> >>> >>> >>> http://localhost:8080/geoserver/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=topp%3Atasmania_cities%2Ctopp%3Atasmania_roads&LAYERS=topp%3Atasmania_cities%2Ctopp%3Atasmania_roads&exceptions=application%2Fvnd.ogc.se_inimage&INFO_FORMAT=text%2Fhtml&X=50&Y=50&SRS=EPSG%3A4326&STYLES=&WIDTH=101&HEIGHT=101&BBOX=146.173095703125%2C-43.96728515625001%2C148.392333984375%2C-41.74804687500001&feature_count=10 >>> >>> >>> >>> You’ll get one feature from Tasmania_cities and one feature from >>> Tasmania_roads. >>> >>> >>> >>> Tested with Geoserver 2.16.1 on Windows. >>> >>> >>> >>> -Jukka Rahkonen- >>> >>> >>> >>> >>> >>> >>> >>> *Lähettäjä:* Vitor Fonseca <[email protected]> >>> *Lähetetty:* perjantai 29. marraskuuta 2019 13.01 >>> *Vastaanottaja:* [email protected] >>> *Kopio:* geoserver-users <[email protected]> >>> *Aihe:* Re: [Geoserver-users] WMS GetFeatureInfo on several layers >>> >>> >>> >>> >>> >>> I don't think that's the problem. >>> >>> >>> >>> He doesn't mention the number of features returned, but *only features >>> from one layer* are returned. >>> >>> I came across a similar problem a while ago. >>> >>> >>> >>> Can you show an example request url? I think it's related to the values >>> in the "layers" and "query_layers" params. In my case they are exactly the >>> same (and in the same order). >>> >>> >>> >>> >>> >>> Andrea Aime <[email protected]> escreveu no dia sexta, >>> 29/11/2019 à(s) 10:48: >>> >>> On Fri, Nov 29, 2019 at 11:42 AM Alexandre Gacon < >>> [email protected]> wrote: >>> >>> Hi, >>> >>> >>> >>> I am trying to send WMS GetFeatureInfo request to my geoserver instance >>> for several layers at the same time (both for layers and query_layers >>> parameters). >>> >>> >>> >>> It seems that only the information of first layer with information at >>> the clicked place is returned : is it something expected ? >>> >>> >>> >>> It is, the GetFeatureInfo request has a FEATURE_COUNT parameter, that >>> indicate the max number of feature infos to be returned. >>> >>> That defaults to 1, if not specified, by WMS specification. >>> >>> >>> >>> The GeoServer layer preview sets it to 50, for example, to show more >>> results, check the URLs the preview is using when clicking on the map. >>> >>> >>> >>> Cheers >>> >>> Andrea >>> >>> >>> >>> == >>> >>> GeoServer Professional Services from the experts! Visit >>> http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf >>> Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa >>> (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 >>> http://www.geo-solutions.it http://twitter.com/geosolutions_it >>> ------------------------------------------------------- *Con >>> riferimento alla normativa sul trattamento dei dati personali (Reg. UE >>> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si >>> precisa che ogni circostanza inerente alla presente email (il suo >>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è >>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il >>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra >>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia. >>> This email is intended only for the person or entity to which it is >>> addressed and may contain information that is privileged, confidential or >>> otherwise protected from disclosure. We remind that - as provided by >>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this >>> e-mail or the information herein by anyone other than the intended >>> recipient is prohibited. If you have received this email by mistake, please >>> notify us immediately by telephone or e-mail.* >>> >>> _______________________________________________ >>> Geoserver-users mailing list >>> >>> Please make sure you read the following two resources before posting to >>> this list: >>> - Earning your support instead of buying it, but Ian Turton: >>> http://www.ianturton.com/talks/foss4g.html#/ >>> - The GeoServer user list posting guidelines: >>> http://geoserver.org/comm/userlist-guidelines.html >>> >>> If you want to request a feature or an improvement, also see this: >>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >>> >>> >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>> >>> >>> >>> >>> -- >>> >>> www.vfonsecaz.pt >>> >>> >>> _______________________________________________ >>> Geoserver-users mailing list >>> >>> Please make sure you read the following two resources before posting to >>> this list: >>> - Earning your support instead of buying it, but Ian Turton: >>> http://www.ianturton.com/talks/foss4g.html#/ >>> - The GeoServer user list posting guidelines: >>> http://geoserver.org/comm/userlist-guidelines.html >>> >>> If you want to request a feature or an improvement, also see this: >>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >>> >>> >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>> >> >> >> -- >> Alexandre Gacon >> _______________________________________________ >> Geoserver-users mailing list >> >> Please make sure you read the following two resources before posting to >> this list: >> - Earning your support instead of buying it, but Ian Turton: >> http://www.ianturton.com/talks/foss4g.html#/ >> - The GeoServer user list posting guidelines: >> http://geoserver.org/comm/userlist-guidelines.html >> >> If you want to request a feature or an improvement, also see this: >> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer >> >> >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> > > > -- > Gabriel Roldán > -- Alexandre Gacon
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
