mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
11 lines
567 B
Plaintext
11 lines
567 B
Plaintext
{
|
|
"name": "get_feature",
|
|
"type": "function",
|
|
"groups": ["Record and Attributes"],
|
|
"description": "Returns the first feature of a layer matching a given attribute value.",
|
|
"arguments": [ {"arg":"layer","description":"layer name or ID"},
|
|
{"arg":"attribute","description":"attribute name"},
|
|
{"arg":"value","description":"attribute value to match"}],
|
|
"examples": [ { "expression":"get_feature('streets','name','main st')", "returns":"first feature found in \"streets\" layer with \"main st\" value in the \"name\" field"}]
|
|
}
|