2015-06-11 12:02:27 +10:00
|
|
|
{
|
Clean up and extend expression geometry functions:
- 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)
2015-09-18 05:41:38 +10:00
|
|
|
"function": "$x_at",
|
2015-06-11 12:02:27 +10:00
|
|
|
"description": "Retrieves a x coordinate of the current feature's geometry.",
|
|
|
|
"arguments": [ {"arg":"i","description":"index of point of a line (indices start at 0; negative values apply from the last index)"}],
|
Clean up and extend expression geometry functions:
- 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)
2015-09-18 05:41:38 +10:00
|
|
|
"examples": [ { "expression":"$x_at(1)", "returns":"5"}
|
2015-06-11 12:02:27 +10:00
|
|
|
]
|
|
|
|
}
|