-
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.
- Loading branch information
Showing
1 changed file
with
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
%YAML 1.2 | ||
--- | ||
scalar_functions: | ||
- | ||
name: "buffer" | ||
description: > | ||
Compute and return an expanded version of the input geometry. All the points | ||
of the returned geometry are at a distance of `buffer_radius` away from the points | ||
of the input geometry. If a negative `buffer_radius` is provided, the geometry will | ||
shrink instead of expand. A negative `buffer_radius` may shrink the geometry completely, | ||
in which case an empty geometry is returned. For input the geometries of points or lines, | ||
a negative `buffer_radius` will always return an emtpy geometry. | ||
impls: | ||
- args: | ||
- value: geometry | ||
name: geom | ||
- value: fp64 | ||
name: buffer_radius | ||
return: geometry | ||
- | ||
name: "centroid" | ||
description: > | ||
Return a point which is the geometric center of mass of the input geometry. | ||
impls: | ||
- args: | ||
- value: geometry | ||
name: geom | ||
return: crs_point | ||
- | ||
name: "minimum_bounding_circle" | ||
description: > | ||
Return the smallest circle polygon that contains the input geometry. | ||
impls: | ||
- args: | ||
- value: geometry | ||
name: geom | ||
return: geometry |