Skip to content

Commit

Permalink
numbers vs geoms
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBeilschmidt committed Feb 6, 2024
1 parent 3e3fe38 commit f4eec8d
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/operators/vectorexpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ if A IS NODATA {
}
```

To generate more complex expressions, it is possible to have variable assignments.

```Rust
let mean = (A + B) / 2;
let coefficient = 0.357;
mean * coefficient
```

Note, that all assignments are separated by semicolons.
However, the last expression must be without a semicolon.

#### Numbers

Function calls can be used to access utility functions.

```Rust
Expand All @@ -81,17 +94,6 @@ Currently, the following functions are available:
- `mod(a, b)`: division remainder
- `to_degrees(a)`, `to_radians(a)`: conversion to degrees or radians

To generate more complex expressions, it is possible to have variable assignments.

```Rust
let mean = (A + B) / 2;
let coefficient = 0.357;
mean * coefficient
```

Note, that all assignments are separated by semicolons.
However, the last expression must be without a semicolon.

#### Geometries

Geometries can be referred to using the `geometryColumnName`, which is `geom` by default.
Expand Down

0 comments on commit f4eec8d

Please sign in to comment.