Skip to content

Commit 386fcc6

Browse files
committed
Add more example
1 parent 1a3c416 commit 386fcc6

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

resources/function_help/json/y

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

0 commit comments

Comments
 (0)