2

I'm writing some code to use filter functions in geotools.

(attName >= replacementFunc() AND title LIKE replacementFunc()) AND attName2 = replacementFunc()

In the area that says LIKE I get a parsing error. If I change it to EQ there are no problems. If I wrap it in quotes, then I get a literal 'replacementFunc()' inside the output. What are my options?

0

In the CQL grammar Like is expected to take a String Literal.

You can probably build this using the FilterFactory directly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.