SMK Usage Guide

A versatile and lightweight toolkit for building a simple web map.

This project is maintained by bcgov

SMK / Configuration / Layers / Query

Layer Query Predicate

The query predicate is a test to be executed against the features of the layer.

There are 2 types of predicate operators, those for testing an attribute’s value, and those for combining the predicates.

There are operators for testing the value of an attribute:

{ "predicate": { "operator": "equals"       } }
{ "predicate": { "operator": "less-than"    } }
{ "predicate": { "operator": "greater-than" } }
{ "predicate": { "operator": "contains"     } }
{ "predicate": { "operator": "starts-with"  } }
{ "predicate": { "operator": "ends-with"    } }

There are operators for combining predicates:

{ "predicate": { "operator": "and"          } }
{ "predicate": { "operator": "or"           } }
{ "predicate": { "operator": "not"          } }