On top of Jody answer I will add that this thread is related with this one: http://osgeo-org.1560.x6.nabble.com/CQL-filter-OR-operator-does-not-wor k-on-attributes-that-are-multiple-on-MongoDB-DataSource-td5408541.html On Fri, 2019-07-19 at 22:10 -0700, Jody Garnett wrote: > I think only a few of the filters are set up to work with multiples > (say in the result of a join), I imagine these could be adapted to > work on a dataset that has some kind of array type natively... > It is relatively uncommon to have multiples so not a lot of functions > are going to be set up to work with this way, so you may need to work > on the code ... > > Can you try a filter that is known to work with multiples just to see > if MongoDB is setup to consider this idea? There should be some kind > of "match action" "any" "all" "one" that would be appropriate ... > here are the geotools docs: https://docs.geotools.org/latest/userguid > e/library/opengis/filter.html#matchaction > > Looking at the diagram there it appears that LIKE is a "multi valued > filter" so the option would be supported if you were doing an XML > query. > I am not sure if ECQL supports this idea so you may have a feature > request ... > > > > > -- > Jody Garnett > > > On Fri, 19 Jul 2019 at 10:42, Artem Groznykh <groznykh....@gmail.com> > wrote: > > Hello. > > > > I use: > > > > - window 7 > > - mongoDB 3.6 > > - GeoServer 2.15.2 > > - mongoDB plugin (for GeoServer 2.15.2) > > - YSLD plugin (for GeoServer 2.15.2) > > > > I've created a collection with data from here (just two records), > > created 2dsphere index > > > > Then I've created a layer and an YSLD style for that layer. > > > > When I use simple attributes (that are not multiple) in the filter > > all is fine: > > > > feature-styles: > > - rules: > > - filter: ${"name" ILIKE 'station%'} > > symbolizers: > > - point: > > size: 16 > > symbols: > > - mark: > > shape: circle > > fill-color: '#00F' > > > > > > > > > > When I use attributes that are multiple in the filter then it DOES > > NOT work > > > > feature-styles: > > - rules: > > - filter: ${ "measurements.name" = 'wind' } > > symbolizers: > > - point: > > size: 16 > > symbols: > > - mark: > > shape: circle > > fill-color: '#00F' > > > > > > > > > > Maybe it relates somehow to the bug that I reported (when OR > > operator does not work in CQL filter of a layer with multiple > > attributes) > > > > How can I make it work? > > > > Без вирусов. www.avast.ru > > _______________________________________________ > > 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 > > > > > > Geoserver-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > > _______________________________________________ > 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://w > ww.ianturton.com/talks/foss4g.html#/ > - The GeoServer user list posting guidelines: http://geoserver.org/co > mm/userlist-guidelines.html > > If you want to request a feature or an improvement, also see this: ht > tps://github.com/geoserver/geoserver/wiki/Successfully-requesting- > and-integrating-new-features-and-improvements-in-GeoServer > > > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users -- Regards, Nuno Oliveira == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. ==
Nuno Miguel Carvalho Oliveira @nmcoliveira Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 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 Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users