|
|
|
@@ -26,7 +26,7 @@ import Within from './filter/Within.js';
|
|
|
|
|
* Create a logical `<And>` operator between two or more filter conditions.
|
|
|
|
|
*
|
|
|
|
|
* @param {...import("./filter/Filter.js").default} conditions Filter conditions.
|
|
|
|
|
* @returns {!And} `<And>` operator.
|
|
|
|
|
* @return {!And} `<And>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function and(conditions) {
|
|
|
|
@@ -38,7 +38,7 @@ export function and(conditions) {
|
|
|
|
|
* Create a logical `<Or>` operator between two or more filter conditions.
|
|
|
|
|
*
|
|
|
|
|
* @param {...import("./filter/Filter.js").default} conditions Filter conditions.
|
|
|
|
|
* @returns {!Or} `<Or>` operator.
|
|
|
|
|
* @return {!Or} `<Or>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function or(conditions) {
|
|
|
|
@@ -50,7 +50,7 @@ export function or(conditions) {
|
|
|
|
|
* Represents a logical `<Not>` operator for a filter condition.
|
|
|
|
|
*
|
|
|
|
|
* @param {!import("./filter/Filter.js").default} condition Filter condition.
|
|
|
|
|
* @returns {!Not} `<Not>` operator.
|
|
|
|
|
* @return {!Not} `<Not>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function not(condition) {
|
|
|
|
@@ -65,7 +65,7 @@ export function not(condition) {
|
|
|
|
|
* @param {!import("../extent.js").Extent} extent Extent.
|
|
|
|
|
* @param {string=} opt_srsName SRS name. No srsName attribute will be
|
|
|
|
|
* set on geometries when this is not provided.
|
|
|
|
|
* @returns {!Bbox} `<BBOX>` operator.
|
|
|
|
|
* @return {!Bbox} `<BBOX>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function bbox(geometryName, extent, opt_srsName) {
|
|
|
|
@@ -80,7 +80,7 @@ export function bbox(geometryName, extent, opt_srsName) {
|
|
|
|
|
* @param {!import("../geom/Geometry.js").default} geometry Geometry.
|
|
|
|
|
* @param {string=} opt_srsName SRS name. No srsName attribute will be
|
|
|
|
|
* set on geometries when this is not provided.
|
|
|
|
|
* @returns {!Contains} `<Contains>` operator.
|
|
|
|
|
* @return {!Contains} `<Contains>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function contains(geometryName, geometry, opt_srsName) {
|
|
|
|
@@ -95,7 +95,7 @@ export function contains(geometryName, geometry, opt_srsName) {
|
|
|
|
|
* @param {!import("../geom/Geometry.js").default} geometry Geometry.
|
|
|
|
|
* @param {string=} opt_srsName SRS name. No srsName attribute will be
|
|
|
|
|
* set on geometries when this is not provided.
|
|
|
|
|
* @returns {!Intersects} `<Intersects>` operator.
|
|
|
|
|
* @return {!Intersects} `<Intersects>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function intersects(geometryName, geometry, opt_srsName) {
|
|
|
|
@@ -110,7 +110,7 @@ export function intersects(geometryName, geometry, opt_srsName) {
|
|
|
|
|
* @param {!import("../geom/Geometry.js").default} geometry Geometry.
|
|
|
|
|
* @param {string=} opt_srsName SRS name. No srsName attribute will be
|
|
|
|
|
* set on geometries when this is not provided.
|
|
|
|
|
* @returns {!Disjoint} `<Disjoint>` operator.
|
|
|
|
|
* @return {!Disjoint} `<Disjoint>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function disjoint(geometryName, geometry, opt_srsName) {
|
|
|
|
@@ -125,7 +125,7 @@ export function disjoint(geometryName, geometry, opt_srsName) {
|
|
|
|
|
* @param {!import("../geom/Geometry.js").default} geometry Geometry.
|
|
|
|
|
* @param {string=} opt_srsName SRS name. No srsName attribute will be
|
|
|
|
|
* set on geometries when this is not provided.
|
|
|
|
|
* @returns {!Within} `<Within>` operator.
|
|
|
|
|
* @return {!Within} `<Within>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function within(geometryName, geometry, opt_srsName) {
|
|
|
|
@@ -142,7 +142,7 @@ export function within(geometryName, geometry, opt_srsName) {
|
|
|
|
|
* @param {!string} unit Unit.
|
|
|
|
|
* @param {string=} opt_srsName SRS name. No srsName attribute will be
|
|
|
|
|
* set on geometries when this is not provided.
|
|
|
|
|
* @returns {!DWithin} `<DWithin>` operator.
|
|
|
|
|
* @return {!DWithin} `<DWithin>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function dwithin(geometryName, geometry, distance, unit, opt_srsName) {
|
|
|
|
@@ -155,7 +155,7 @@ export function dwithin(geometryName, geometry, distance, unit, opt_srsName) {
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!(string|number)} expression The value to compare.
|
|
|
|
|
* @param {boolean=} opt_matchCase Case-sensitive?
|
|
|
|
|
* @returns {!EqualTo} `<PropertyIsEqualTo>` operator.
|
|
|
|
|
* @return {!EqualTo} `<PropertyIsEqualTo>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function equalTo(propertyName, expression, opt_matchCase) {
|
|
|
|
@@ -168,7 +168,7 @@ export function equalTo(propertyName, expression, opt_matchCase) {
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!(string|number)} expression The value to compare.
|
|
|
|
|
* @param {boolean=} opt_matchCase Case-sensitive?
|
|
|
|
|
* @returns {!NotEqualTo} `<PropertyIsNotEqualTo>` operator.
|
|
|
|
|
* @return {!NotEqualTo} `<PropertyIsNotEqualTo>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function notEqualTo(propertyName, expression, opt_matchCase) {
|
|
|
|
@@ -180,7 +180,7 @@ export function notEqualTo(propertyName, expression, opt_matchCase) {
|
|
|
|
|
*
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!number} expression The value to compare.
|
|
|
|
|
* @returns {!LessThan} `<PropertyIsLessThan>` operator.
|
|
|
|
|
* @return {!LessThan} `<PropertyIsLessThan>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function lessThan(propertyName, expression) {
|
|
|
|
@@ -192,7 +192,7 @@ export function lessThan(propertyName, expression) {
|
|
|
|
|
*
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!number} expression The value to compare.
|
|
|
|
|
* @returns {!LessThanOrEqualTo} `<PropertyIsLessThanOrEqualTo>` operator.
|
|
|
|
|
* @return {!LessThanOrEqualTo} `<PropertyIsLessThanOrEqualTo>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function lessThanOrEqualTo(propertyName, expression) {
|
|
|
|
@@ -204,7 +204,7 @@ export function lessThanOrEqualTo(propertyName, expression) {
|
|
|
|
|
*
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!number} expression The value to compare.
|
|
|
|
|
* @returns {!GreaterThan} `<PropertyIsGreaterThan>` operator.
|
|
|
|
|
* @return {!GreaterThan} `<PropertyIsGreaterThan>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function greaterThan(propertyName, expression) {
|
|
|
|
@@ -216,7 +216,7 @@ export function greaterThan(propertyName, expression) {
|
|
|
|
|
*
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!number} expression The value to compare.
|
|
|
|
|
* @returns {!GreaterThanOrEqualTo} `<PropertyIsGreaterThanOrEqualTo>` operator.
|
|
|
|
|
* @return {!GreaterThanOrEqualTo} `<PropertyIsGreaterThanOrEqualTo>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function greaterThanOrEqualTo(propertyName, expression) {
|
|
|
|
@@ -228,7 +228,7 @@ export function greaterThanOrEqualTo(propertyName, expression) {
|
|
|
|
|
* is null.
|
|
|
|
|
*
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @returns {!IsNull} `<PropertyIsNull>` operator.
|
|
|
|
|
* @return {!IsNull} `<PropertyIsNull>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function isNull(propertyName) {
|
|
|
|
@@ -242,7 +242,7 @@ export function isNull(propertyName) {
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!number} lowerBoundary The lower bound of the range.
|
|
|
|
|
* @param {!number} upperBoundary The upper bound of the range.
|
|
|
|
|
* @returns {!IsBetween} `<PropertyIsBetween>` operator.
|
|
|
|
|
* @return {!IsBetween} `<PropertyIsBetween>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function between(propertyName, lowerBoundary, upperBoundary) {
|
|
|
|
@@ -262,7 +262,7 @@ export function between(propertyName, lowerBoundary, upperBoundary) {
|
|
|
|
|
* @param {string=} opt_escapeChar Escape character which can be used to escape
|
|
|
|
|
* the pattern characters. Default is '!'.
|
|
|
|
|
* @param {boolean=} opt_matchCase Case-sensitive?
|
|
|
|
|
* @returns {!IsLike} `<PropertyIsLike>` operator.
|
|
|
|
|
* @return {!IsLike} `<PropertyIsLike>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function like(
|
|
|
|
@@ -289,7 +289,7 @@ export function like(
|
|
|
|
|
* @param {!string} propertyName Name of the context property to compare.
|
|
|
|
|
* @param {!string} begin The begin date in ISO-8601 format.
|
|
|
|
|
* @param {!string} end The end date in ISO-8601 format.
|
|
|
|
|
* @returns {!During} `<During>` operator.
|
|
|
|
|
* @return {!During} `<During>` operator.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
export function during(propertyName, begin, end) {
|
|
|
|
|