mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
18 lines
660 B
Plaintext
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"}
|
|
]
|
|
}
|