Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature][expressions] Add feature_id(some feature) function
Allows for retrieving the feature ID of a feature object. Accepts one argument which must be a feature object. Accordingly this function can be used with the results of any other function which returns feature objects, such as "get_feature", "overlay_*", etc. Fixes #51116
- Loading branch information
1 parent
0b31551
commit 390cb76
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "feature_id", | ||
"type": "function", | ||
"groups": ["Record and Attributes"], | ||
"description": "Returns a feature's unique ID.", | ||
"arguments": [{ | ||
"arg": "feature", | ||
"description": "a feature object" | ||
}], | ||
"examples": [{ | ||
"expression": "feature_id( @feature )", | ||
"returns": "the ID of the current feature" | ||
}], | ||
"tags": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters