Skip to content
Permalink
Browse files

Add more example

  • Loading branch information
DelazJ committed May 24, 2016
1 parent ff38f27 commit 1a3c41657f01d6a7f99bcef6e11e4145357cb215
Showing with 2 additions and 1 deletion.
  1. +2 −1 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"}
]
}

0 comments on commit 1a3c416

Please sign in to comment.
You can’t perform that action at this time.