mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Improve num_selected and is_selected function help
This commit is contained in:
parent
c282e26210
commit
5093ec6bc9
@ -3,8 +3,18 @@
|
||||
"type": "function",
|
||||
"description": "Returns if a feature is selected. If called with no parameters checks the current feature.",
|
||||
"arguments": [
|
||||
{"arg":"feature","description":"The feature which should be checked for selection"},
|
||||
{"arg":"layer","description":"The layer (or its id or name) on which the selection will be checked"}
|
||||
{
|
||||
"arg":"feature",
|
||||
"optional": true,
|
||||
"default": "current feature",
|
||||
"description":"The feature which should be checked for selection."
|
||||
},
|
||||
{
|
||||
"arg": "layer",
|
||||
"optional": true,
|
||||
"default": "current layer",
|
||||
"description": "The layer (or its id or name) on which the selection will be checked."
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{ "expression":"is_selected()", "returns" : "True if the current feature is selected."},
|
||||
|
@ -3,7 +3,12 @@
|
||||
"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","description":"The layer (or its id or name) on which the selection will be checked"}
|
||||
{
|
||||
"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."},
|
||||
|
Loading…
x
Reference in New Issue
Block a user