Is it possible to use multiple values in one Literal tag?

This is what I have:


I want to symbolize multiple attributes in one block rather than repeat the above line dozens of times. And unfortunately my table values are not very friendly so I can't use a greater than call. I was hoping for something similar to below (Literal Tag)


And the next Rule would be something like this:


2 Answers 2


I would go with something like:

<ogc:Function name="in">

Alternatively generate a new column in the database with the new classes precomputed in it.

  • can this be used to get the geojson data from WMS by POST request ? Dec 17, 2017 at 17:28
  • Should the whole PropertyIsEqualTo block be replaced by this?
    – BERA
    Apr 29, 2022 at 13:16

You can use other operators like:


Check here the geoserver doc.

For array, check the "in" comparison function.

  • Those won't work because of the table.
    – risail
    May 4, 2016 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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