Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #3095 from DelazJ/patch-3
Add example to functions
  • Loading branch information
nyalldawson committed May 24, 2016
2 parents ff38f27 + 386fcc6 commit 2bba191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/function_help/json/x
Expand Up @@ -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"}
]
}
3 changes: 2 additions & 1 deletion resources/function_help/json/y
Expand Up @@ -3,6 +3,7 @@
"type": "function",
"description": "Returns the y coordinate of a point geometry, or the y-coordinate of the centroid for a non-point geometry.",
"arguments": [ {"arg":"geom","description":"a geometry"}],
"examples": [ { "expression":"y( geom_from_wkt( 'POINT(2 5)' ) )", "returns":"5"}
"examples": [ { "expression":"y( geom_from_wkt( 'POINT(2 5)' ) )", "returns":"5"},
{ "expression":"y( $geometry )", "returns":"y coordinate of the current feature's centroid"}
]
}

0 comments on commit 2bba191

Please sign in to comment.