-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add wedge_buffer expression function
Returns a wedge shaped buffer originating from a point geometry, with arguments for azimuth, buffer width (in degrees), outer radius and inner radius.
- Loading branch information
1 parent
2850b30
commit d5647bc
Showing
3 changed files
with
42 additions
and
1 deletion.
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,12 @@ | ||
{ | ||
"name": "wedge_buffer", | ||
"type": "function", | ||
"description": "Returns a wedge shaped buffer originating from a point geometry.", | ||
"arguments": [ {"arg":"center","description":"center point (origin) of buffer. Must be a point geometry."}, | ||
{"arg":"azimuth","description":"angle (in degrees) for the middle of the wedge to point."}, | ||
{"arg":"width","description":"buffer width (in degrees). Note that the wedge will extend to half of the angular width either side of the azimuth direction."}, | ||
{"arg":"outer_radius","description":"outer radius for buffers"}, | ||
{"arg":"inner_radius","optional":true,"default":"0.0","description":"optional inner radius for buffers"}], | ||
"examples": [ { "expression":"wedge_buffer(center:=geom_from_wkt('POINT(1 2)'),azimuth:=90,width:=180,outer_radius:=1)", "returns":"A wedge shaped buffer centered on the point (1,2), facing to the East, with a width of 180 degrees and outer radius of 1."}] | ||
} | ||
|
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