mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-24 00:05:18 -05:00
- New expression functions for area(geom), perimeter(geom), point_n(geom), start_point(geom), end_point(geom), make_point(x,y) - Add new variant to length() function which takes a geometry object, allows for length(geom) evaluation. - Rename x_at, y_at to $x_at, $y_at (alias old names) to reflect that these only work on current feature geometry - Add x(geom), y(geom) functions which return x and y coordinate for point geometries or centroid x/y for non-point geometries (fix #11008)
8 lines
329 B
Plaintext
8 lines
329 B
Plaintext
{
|
|
"function": "make_point",
|
|
"description": "Creates a point geometry from an x and y value.",
|
|
"arguments": [ {"arg":"x","description":"x coordinate of point"},
|
|
{"arg":"y","description":"y coordinate of point"} ],
|
|
"examples": [ { "expression":"geom_to_wkt(make_point(2,4))", "returns":"'Point (2 4)'"}]
|
|
}
|