-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add geometric data types and functions
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
%YAML 1.2 | ||
--- | ||
scalar_functions: | ||
- | ||
name: "point" | ||
description: > | ||
Return a 2D point with the given `x` and `y` coordinate values. | ||
impls: | ||
- args: | ||
- name: x | ||
value: fp64 | ||
- name: y | ||
value: fp64 | ||
return: geometry | ||
- | ||
name: "makeline" | ||
description: > | ||
Return a linestring containing the points of the two input geometries. | ||
Repeated points at the beginning of input geometries are collapsed to a single point. | ||
A linestring can be closed or simple. A closed linestring starts and ends on the same | ||
point. A simple linestring does not cross or touch itself. | ||
impls: | ||
- args: | ||
- name: x | ||
value: geometry | ||
- name: y | ||
value: geometry | ||
return: geometry |