如何使用CQL过滤器[attr IN List]?

时间:2019-01-19 15:55:44

标签: cql geotools

我正在尝试在文档中引用查询时使用CQL的In过滤器,但是它不起作用,并且我收到的分析错误表明CQL中没有IN过滤器:

org.geotools.filter.text.cql2.CQLException: Encountered "IS IN" at line 1, column 15.
Was expecting one of:
    "(" ...
    ":" ...
    <IDENTIFIER> ...
    "." ...
    <NOT> ...
    "like" ...
    "is" "null" ...
    "is" <NOT> ...
    "exists" ...
    "does-not-exist" ...
    "tequals" ...
    "before" ...
    "after" ...
    "during" ...
    "between" ...
    <EQ> ...
    <GT> ...
    <LT> ...
    <GTE> ...
    <LTE> ...
    <NEQ> ...
     Parsing : point_type_id IS IN ('1','2','3').

此错误是否有任何解决方法,或者我将使用多个过滤器并将其与OR组合?

1 个答案:

答案 0 :(得分:0)

您正在尝试解析invalidIS IN-仅尝试point_type_id IN ('1','2','3')