• Creates a condition that evaluates to true when both expressions are equal.

      FilterFactory.eq(
    FilterFactory.property( "city_name" ),
    FilterFactory.literal( "New York" )
    );

    FilterFactory.eq(
    FilterFactory.func( "getCityNames" ),
    FilterFactory.literal( "New York" ),
    false,
    MatchAction.ANY
    );

    Parameters

    • firstExpression: Expression

      the first expression

    • secondExpression: Expression

      the second expression

    • OptionalmatchCase: boolean

      indicates whether this comparison operator is case sensitive or not. If omitted the string comparisons shall match case.

    • OptionalmatchAction: MatchAction

      specifies how the comparison shall be evaluated for a collection of values. Please refer to the MatchAction class for more details.
      Note: This parameter has been introduced in the OGC Filter specification 2.0.0

    Returns OGCCondition

    A BinaryComparison of type "Equals".

    Error if not both expressions are OGCExpression.