Hi Andrea,

Thank you for your response but I am not sure if I explained it clearly.

We reqest the same layers with two different styles in the same WMS request 
(using layers and styles parameter, both comma separated).
Duplicates are OK, but I would expect to get a "union all” of the features from 
both style filters, but we only get the features of the first style but 
duplicated (features resulted by the second style in the list are missing).

So request LAYER=APPLE with STYLE=green results in one, green apple feature, 
request LAYER=APPLE with STYLE=red results in one, red apple feature 
and request with LAYER=APPLE,APPLE and STYLE=green,red results in the green 
apple feature twice. Is this the way it should work?

Thank you,
Laszlo

> On 2018. júl. 10., at 15:35, Andrea Aime <[email protected]> wrote:
> 
> On Mon, Jul 9, 2018 at 10:47 PM, László Németh <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi,
> 
> We are using geoserver v2.13. We have a database layer named RAWDWG_T with 
> two associated styles named RAWDWG_SAJAT_OSZLOPSOR and 
> RAWDWG_SAJAT_ALEPITMENY. 
> The styles are not defining rule for all the features of the layer, so the 
> styles also filter the content of the layers. 
> 
> The issue is that we request GetFeatureInfo to Geoserver with parameters:
> 
> LAYERS=RAWDWG_T,RAWDWG_T
> QUERY_LAYERS=RAWDWG_T,RAWDWG_T
> STYLES=RAWDWG_SAJAT_OSZLOPSOR,RAWDWG_SAJAT_ALEPITMENY
> 
> we only get the features filtered by RAWDWG_SAJAT_OSZLOPSOR but we get them 
> twice. If we exchange the layers order we get only RAWDWG_SAJAT_ALEPITMENY 
> twice as well. 
> Is this a feature or a bug?
> 
> It's working as expected, different styles can perform different filtering 
> and result in different features. 
> The engine is also "streaming" by design, does not keep features in memory, 
> just dumps them one by one on output.
> In theory, one could work out a new request vendor option, or configuration, 
> that removes duplicates in the result, if you're after it check this guide:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>  
> <https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer>
> 
> Cheers
> Andrea
> 
> ==
> GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
> <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://www.geo-solutions.it/>
> http://twitter.com/geosolutions_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.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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

Reply via email to