Functions
-
and(conditions){And}
-
import {and} from 'ol/format/filter';Create a logical
<And>operator between two or more filter conditions.Name Type Description conditionsFilter Filter conditions.
Returns:
<And>operator.
-
bbox(geometryName, extent, srsName){Bbox}
-
import {bbox} from 'ol/format/filter';Create a
<BBOX>operator to test whether a geometry-valued property intersects a fixed bounding boxName Type Description geometryNamestring Geometry name to use.
extentExtent Extent.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
Returns:
<BBOX>operator.
-
between(propertyName, lowerBoundary, upperBoundary){IsBetween}
-
import {between} from 'ol/format/filter';Creates a
<PropertyIsBetween>comparison operator to test whether an expression value lies within a range given by a lower and upper bound (inclusive).Name Type Description propertyNamestring Name of the context property to compare.
lowerBoundarynumber The lower bound of the range.
upperBoundarynumber The upper bound of the range.
Returns:
<PropertyIsBetween>operator.
-
contains(geometryName, geometry, srsName){Contains}
-
import {contains} from 'ol/format/filter';Create a
<Contains>operator to test whether a geometry-valued property contains a given geometry.Name Type Description geometryNamestring Geometry name to use.
geometryGeometry Geometry.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
Returns:
<Contains>operator.
-
disjoint(geometryName, geometry, srsName){Disjoint}
-
import {disjoint} from 'ol/format/filter';Create a
<Disjoint>operator to test whether a geometry-valued property is disjoint to a given geometry.Name Type Description geometryNamestring Geometry name to use.
geometryGeometry Geometry.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
Returns:
<Disjoint>operator.
-
during(propertyName, begin, end){During}
-
import {during} from 'ol/format/filter';Create a
<During>temporal operator.Name Type Description propertyNamestring Name of the context property to compare.
beginstring The begin date in ISO-8601 format.
endstring The end date in ISO-8601 format.
Returns:
<During>operator.
-
dwithin(geometryName, geometry, distance, unit, srsName){DWithin}
-
import {dwithin} from 'ol/format/filter';Create a
<DWithin>operator to test whether a geometry-valued property is within a distance to a given geometry.Name Type Description geometryNamestring Geometry name to use.
geometryGeometry Geometry.
distancenumber Distance.
unitstring Unit.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
Returns:
<DWithin>operator.
-
equalTo(propertyName, expression, matchCase){EqualTo}
-
import {equalTo} from 'ol/format/filter';Creates a
<PropertyIsEqualTo>comparison operator.Name Type Description propertyNamestring Name of the context property to compare.
expressionstring | number The value to compare.
matchCaseboolean | undefined Case-sensitive?
Returns:
<PropertyIsEqualTo>operator.
-
greaterThan(propertyName, expression){GreaterThan}
-
import {greaterThan} from 'ol/format/filter';Creates a
<PropertyIsGreaterThan>comparison operator.Name Type Description propertyNamestring Name of the context property to compare.
expressionnumber The value to compare.
Returns:
<PropertyIsGreaterThan>operator.
-
greaterThanOrEqualTo(propertyName, expression){GreaterThanOrEqualTo}
-
import {greaterThanOrEqualTo} from 'ol/format/filter';Creates a
<PropertyIsGreaterThanOrEqualTo>comparison operator.Name Type Description propertyNamestring Name of the context property to compare.
expressionnumber The value to compare.
Returns:
<PropertyIsGreaterThanOrEqualTo>operator.
-
intersects(geometryName, geometry, srsName){Intersects}
-
import {intersects} from 'ol/format/filter';Create a
<Intersects>operator to test whether a geometry-valued property intersects a given geometry.Name Type Description geometryNamestring Geometry name to use.
geometryGeometry Geometry.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
Returns:
<Intersects>operator.
-
isNull(propertyName){IsNull}
-
import {isNull} from 'ol/format/filter';Creates a
<PropertyIsNull>comparison operator to test whether a property value is null.Name Type Description propertyNamestring Name of the context property to compare.
Returns:
<PropertyIsNull>operator.
-
lessThan(propertyName, expression){LessThan}
-
import {lessThan} from 'ol/format/filter';Creates a
<PropertyIsLessThan>comparison operator.Name Type Description propertyNamestring Name of the context property to compare.
expressionnumber The value to compare.
Returns:
<PropertyIsLessThan>operator.
-
lessThanOrEqualTo(propertyName, expression){LessThanOrEqualTo}
-
import {lessThanOrEqualTo} from 'ol/format/filter';Creates a
<PropertyIsLessThanOrEqualTo>comparison operator.Name Type Description propertyNamestring Name of the context property to compare.
expressionnumber The value to compare.
Returns:
<PropertyIsLessThanOrEqualTo>operator.
-
like(propertyName, pattern, wildCard, singleChar, escapeChar, matchCase){IsLike}
-
import {like} from 'ol/format/filter';Represents a
<PropertyIsLike>comparison operator that matches a string property value against a text pattern.Name Type Description propertyNamestring Name of the context property to compare.
patternstring Text pattern.
wildCardstring | undefined Pattern character which matches any sequence of zero or more string characters. Default is '*'.
singleCharstring | undefined pattern character which matches any single string character. Default is '.'.
escapeCharstring | undefined Escape character which can be used to escape the pattern characters. Default is '!'.
matchCaseboolean | undefined Case-sensitive?
Returns:
<PropertyIsLike>operator.
-
not(condition){Not}
-
import {not} from 'ol/format/filter';Represents a logical
<Not>operator for a filter condition.Name Type Description conditionFilter Filter condition.
Returns:
<Not>operator.
-
notEqualTo(propertyName, expression, matchCase){NotEqualTo}
-
import {notEqualTo} from 'ol/format/filter';Creates a
<PropertyIsNotEqualTo>comparison operator.Name Type Description propertyNamestring Name of the context property to compare.
expressionstring | number The value to compare.
matchCaseboolean | undefined Case-sensitive?
Returns:
<PropertyIsNotEqualTo>operator.
-
or(conditions){Or}
-
import {or} from 'ol/format/filter';Create a logical
<Or>operator between two or more filter conditions.Name Type Description conditionsFilter Filter conditions.
Returns:
<Or>operator.
-
within(geometryName, geometry, srsName){Within}
-
import {within} from 'ol/format/filter';Create a
<Within>operator to test whether a geometry-valued property is within a given geometry.Name Type Description geometryNamestring Geometry name to use.
geometryGeometry Geometry.
srsNamestring | undefined SRS name. No srsName attribute will be set on geometries when this is not provided.
Returns:
<Within>operator.