Harrissou Sant-anna 386fcc67ab Add more example
2016-05-24 12:24:12 +02:00

10 lines
414 B
Plaintext

{
"name": "y",
"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"},
{ "expression":"y( $geometry )", "returns":"y coordinate of the current feature's centroid"}
]
}