Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread László Németh
Dear Andrea, Thank you! Regards, László > 2019. jan. 2. dátummal, 19:05 időpontban Andrea Aime > írta: > > On Wed, Jan 2, 2019 at 11:21 AM László Németh > wrote: > Should it be referenced in the style anywhere or being argument of the > function call? > >

Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread Andrea Aime
On Wed, Jan 2, 2019 at 11:21 AM László Németh wrote: > Should it be referenced in the style anywhere or being argument of the > function call? > Best if it's in the function call, functions should have explicit arguments, not implicit/magical ones. Support for this kind of magic function could

Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread László Németh
Should it be referenced in the style anywhere or being argument of the function call? If it is enough to reference, what is the best practice for a “noop” function to reference all attributes required by the functions of the style? Laszlo > 2019. jan. 2. dátummal, 11:18 időpontban Andrea Aime

Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread Andrea Aime
On Wed, Jan 2, 2019 at 11:15 AM László Németh wrote: > Thanks. I was wondering how “property" feature function is working. Is it > possible to load properties dymanically or at least indicate what > propereties are needed for the function to work? > There is the "property" function that can be

Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread László Németh
Thanks. I was wondering how “property" feature function is working. Is it possible to load properties dymanically or at least indicate what propereties are needed for the function to work? Regards, Laszlo > 2019. jan. 2. dátummal, 11:02 időpontban Andrea Aime > írta: > > Yes, only the

Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread Andrea Aime
Yes, only the properties explicitly referenced in the style are loaded from the source data, so your function will have to have the necessary parameters explicitly listed as call arguments Cheers Andrea On Wed, Jan 2, 2019 at 10:58 AM László Németh wrote: > Thank you, Andrea! > > Could you

Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread László Németh
Thank you, Andrea! Could you also help me understand the following. I try to add a new function to geoserver. The function I implemented is called properly, however the feature passed to the evaluate function seems to have only 2 properties however the feature should have tens of properties. I

Re: [Geoserver-users] CSS syntax with filter function returning boolean

2019-01-02 Thread Andrea Aime
Hi, in OGC Filter, and by extension, in SLD and CSS, a function is not a filter, it's an expression. The filters are the alphanumeric and spatial comparisons. like, between, and the logical combinators. In order to make that a filter you'll have to write: [equalTo(1, 1) = true] Cheers Andrea On