Skip to content
Permalink
Browse files

Fully explain the examples

avoiding use of $geometry function in explanation
  • Loading branch information
DelazJ authored and nyalldawson committed Jul 30, 2020
1 parent 490c8ff commit a4372d21b7fca0465dce0ebcd75274d5f3cdbf8c
@@ -4,6 +4,6 @@
"groups": ["GeometryGroup"],
"description":"Returns a geometry which represents the bounding box of an input geometry. Calculations are in the Spatial Reference System of this geometry.",
"arguments": [ {"arg":"geometry","description":"a geometry"} ],
"examples": [ { "expression":"bounds($geometry)", "returns":"bounding box of $geometry"}]
"examples": [ { "expression":"bounds($geometry)", "returns":"bounding box of the current feature's geometry"}]
}

@@ -4,6 +4,6 @@
"groups": ["GeometryGroup"],
"description": "Returns the height of the bounding box of a geometry. Calculations are in the Spatial Reference System of this geometry.",
"arguments": [ {"arg":"geometry","description":"a geometry"}],
"examples": [ { "expression":"bounds_height($geometry)", "returns":"height of bounding box of $geometry"}]
"examples": [ { "expression":"bounds_height($geometry)", "returns":"height of bounding box of the current feature's geometry"}]
}

@@ -4,6 +4,6 @@
"groups": ["GeometryGroup"],
"description": "Returns the width of the bounding box of a geometry. Calculations are in the Spatial Reference System of this geometry.",
"arguments": [ {"arg":"geometry","description":"a geometry"}],
"examples": [ { "expression":"bounds_width($geometry)", "returns":"width of bounding box of $geometry"}]
"examples": [ { "expression":"bounds_width($geometry)", "returns":"width of bounding box of the current feature's geometry"}]
}

@@ -6,6 +6,6 @@
"arguments": [ {"arg":"geometry","description":"a geometry"},
{"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"}]
"examples": [ { "expression":"buffer($geometry, 10.5)", "returns":"polygon of the current feature's geometry buffered by 10.5 units"}]
}

@@ -4,6 +4,6 @@
"groups": ["GeometryGroup"],
"description": "Returns the number of vertices in a geometry.",
"arguments": [ {"arg":"geometry","description":"a geometry"}],
"examples": [ { "expression":"num_points($geometry)", "returns":"number of vertices in $geometry"}]
"examples": [ { "expression":"num_points($geometry)", "returns":"number of vertices in the current feature's geometry"}]
}

0 comments on commit a4372d2

Please sign in to comment.
You can’t perform that action at this time.