QGIS/resources/function_help/json/densify_by_count

14 lines
625 B
Plaintext
Raw Normal View History

{
"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)"}
]
}