diff --git a/resources/function_help/json/x b/resources/function_help/json/x index ccf1d5545bd..1c8b6910ba8 100644 --- a/resources/function_help/json/x +++ b/resources/function_help/json/x @@ -3,6 +3,7 @@ "type": "function", "description": "Returns the x coordinate of a point geometry, or the x-coordinate of the centroid for a non-point geometry.", "arguments": [ {"arg":"geom","description":"a geometry"}], - "examples": [ { "expression":"x( geom_from_wkt( 'POINT(2 5)' ) )", "returns":"2"} + "examples": [ { "expression":"x( geom_from_wkt( 'POINT(2 5)' ) )", "returns":"2"}, + { "expression":"x( $geometry )", "returns":"x coordinate of the current feature's centroid"} ] }