Skip to content

Commit

Permalink
feat: geometry processing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
richtia committed Sep 19, 2023
1 parent dacc5a9 commit 2ce5093
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions extensions/functions_geometry.yaml
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

0 comments on commit 2ce5093

Please sign in to comment.