Skip to content
Permalink
Browse files

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 2bba1917e12253a220d77015884256a523f2a417
Showing with 4 additions and 2 deletions.
  1. +2 −1 resources/function_help/json/x
  2. +2 −1 resources/function_help/json/y
@@ -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,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.
You can’t perform that action at this time.