Expression syntax¶
Compute column and Filter rows can use Expression mode for conditions that Simple mode cannot say in one comparison.
This is a small expression language that GeoJibe compiles into the same processing engine used by other Transform operations. It is not PostgreSQL, SQLite, or a SQL editor. You cannot write SELECT, FROM, or more than one statement.
What you can write¶
- Field names, including quoted names such as
"parcel id" - Numbers and quoted text (
'active') - Arithmetic:
+ - * /and parentheses - Comparisons:
= != <> < > <= >= AND,OR,NOTIN ('a', 'b')andNOT IN (...)IS NULLandIS NOT NULL- Functions:
abs,round,length,lower,upper,trim,coalesce,substr,nullif CAST(field AS integer|float|string)
Examples¶
Compute a density field:
Keep busy, active rows:
What is rejected¶
- Semicolons and SQL comments
SELECT,FROM,UNION, and other statements- Unknown field names
- Functions that are not in the list above
Use Validate in the editor to catch obvious mistakes before you add the operation. Running the job still uses the same rules.