mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
14 lines
625 B
Plaintext
14 lines
625 B
Plaintext
|
{
|
||
|
"name": "densify_by_count",
|
||
|
"type": "function",
|
||
|
"groups": ["GeometryGroup"],
|
||
|
"description": "Takes a polygon or line layer geometry and generates a new one in which the geometries have a larger number of vertices than the original one.",
|
||
|
"arguments": [
|
||
|
{"arg":"geometry","description":"a geometry (accepts (multi)linestrings or (multi)polygons)."},
|
||
|
{"arg":"vertices","description":"number of vertices to add (per segment)"}
|
||
|
],
|
||
|
"examples": [
|
||
|
{ "expression":"geom_to_wkt(densify_by_count(geom_from_wkt('LINESTRING(1 1, 10 1)'), 3))", "returns":"LineString (1 1, 3.25 1, 5.5 1, 7.75 1, 10 1)"}
|
||
|
]
|
||
|
}
|