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
|
|
|
{
|
2015-09-20 17:12:43 +02:00
|
|
|
"name": "make_point",
|
|
|
|
"type": "function",
|
2015-11-06 20:09:13 +11:00
|
|
|
"description": "Creates a point geometry from an x and y (and optional z and m) value.",
|
2015-09-20 17:12:43 +02:00
|
|
|
"arguments": [
|
|
|
|
{"arg":"x","description":"x coordinate of point"},
|
2015-11-06 20:09:13 +11:00
|
|
|
{"arg":"y","description":"y coordinate of point"},
|
|
|
|
{"arg":"z","description":"optional z coordinate of point"},
|
|
|
|
{"arg":"m","description":"optional m value of point"} ],
|
|
|
|
"examples": [ { "expression":"geom_to_wkt(make_point(2,4))", "returns":"'Point (2 4)'"},
|
|
|
|
{ "expression":"geom_to_wkt(make_point(2,4,6))", "returns":"'PointZ (2 4 6)'"},
|
|
|
|
{ "expression":"geom_to_wkt(make_point(2,4,6,8))", "returns":"'PointZM (2 4 6 8)'"}
|
|
|
|
]
|
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
|
|
|
}
|