Filter

Filter

Filter configuration

Constructor

new Filter(config)

Source:
Parameters:
Name Type Description
config Object

Configuration object

Properties
Name Type Attributes Default Description
property String | Array.<Filter>

Property used to filter data or array of two filter objects for complex filters

value String

The value to filter by

operator String <optional>
'='

The operator to use in filter. Options: '=', '<>', '<', '<=', '>', '>=', 'like'

logicalOperator String <optional>
'AND'

The operator to use between filters. Options: 'AND', 'OR', 'NOT'

Methods

(static) ogcLogicalOperator() → {String}

Source:

OGC string version of the logical operator

Returns:
Type
String

(static) ogcOperator() → {String}

Source:

OGC string version of the filter operator

Returns:
Type
String

execute(value) → {Boolean}

Source:

Execute the filter against a given value

Parameters:
Name Type Description
value *

Value to process

Returns:
  • Returns true if value matches the filter
Type
Boolean

toString() → {String}

Source:
Returns:
Type
String