add optional segments argument

text taken from single_sided_buffer
This commit is contained in:
Hannes 2018-05-10 16:58:12 +02:00 committed by GitHub
parent 85f42e7d46
commit e8d1099ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,8 @@
"type": "function",
"description": "Returns a geometry that represents all points whose distance from this geometry is less than or equal to distance. Calculations are in the Spatial Reference System of this geometry.",
"arguments": [ {"arg":"geom","description":"a geometry"},
{"arg":"distance","description":"buffer distance in layer units"}],
{"arg":"distance","description":"buffer distance in layer units"},
{"arg":"segments","optional":true,"default":"8","description":"number of segments to use to represent a quarter circle when a round join style is used. A larger number results in a smoother buffer with more nodes."}],
"examples": [ { "expression":"buffer($geometry, 10.5)", "returns":"polygon of $geometry buffered by 10.5 units"}]
}