Skip to content

Commit 1a3c416

Browse files
committedMay 24, 2016
Add more example
1 parent ff38f27 commit 1a3c416

File tree

1 file changed

+2
-1
lines changed
  • resources/function_help/json

1 file changed

+2
-1
lines changed
 

‎resources/function_help/json/x

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"type": "function",
44
"description": "Returns the x coordinate of a point geometry, or the x-coordinate of the centroid for a non-point geometry.",
55
"arguments": [ {"arg":"geom","description":"a geometry"}],
6-
"examples": [ { "expression":"x( geom_from_wkt( 'POINT(2 5)' ) )", "returns":"2"}
6+
"examples": [ { "expression":"x( geom_from_wkt( 'POINT(2 5)' ) )", "returns":"2"},
7+
{ "expression":"x( $geometry )", "returns":"x coordinate of the current feature's centroid"}
78
]
89
}

0 commit comments

Comments
 (0)
Please sign in to comment.