mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -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
365 B
Plaintext
8 lines
365 B
Plaintext
{
|
|
"function": "perimeter",
|
|
"description": "Returns the perimeter of a geometry polygon object. Calculations are in the Spatial Reference System of this geometry.",
|
|
"arguments": [ {"arg":"geometry","description":"polygon geometry object"}],
|
|
"examples": [ { "expression":"perimeter(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'))", "returns":"12.0"}]
|
|
}
|
|
|