2016-11-09 08:45:53 +01:00

18 lines
660 B
Plaintext

{
"name": "num_selected",
"type": "function",
"description": "Returns the number of selected features on a given layer. By default works on the layer on which the expression is evaluated.",
"arguments": [
{
"arg": "layer",
"optional": true,
"default": "current layer",
"description": "The layer (or its id or name) on which the selection will be checked."
}
],
"examples": [
{ "expression":"num_selected()", "returns":"The number of selected features on the current layer."},
{ "expression":"num_selected('streets')", "returns":"The number of selected features on the layer streets"}
]
}