19 lines
530 B
Plaintext
Raw Normal View History

{
"name": "x",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
"description": "Returns the x coordinate of a point geometry, or the x coordinate of the centroid for a non-point geometry.",
"arguments": [{
"arg": "geometry",
"description": "a geometry"
}],
"examples": [{
"expression": "x( geom_from_wkt( 'POINT(2 5)' ) )",
"returns": "2"
}, {
"expression": "x( $geometry )",
"returns": "x coordinate of the current feature's centroid"
}],
"tags": ["centroid", "point", "coordinate"]
}