From 1a3c41657f01d6a7f99bcef6e11e4145357cb215 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Tue, 24 May 2016 12:21:00 +0200 Subject: [PATCH] Add more example --- resources/function_help/json/x | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"} ] }