Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
formatted_attributes() expression function
Funded by: Kanton Solothurn
- Loading branch information
Showing
2 changed files
with
64 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": "formatted_attributes", | ||
"type": "function", | ||
"groups": ["Record and Attributes"], | ||
"description": "Returns a map containing all attributes from a feature, with field names as map keys and formatted attributes as string values. Attributes are formatted as defined in the 'Attributes Form' section of the layer properties.", | ||
"variants": [ | ||
{ "variant": "Variant 1", | ||
"variant_description": "Returns a map of all attributes from the current feature formatted as defined in the 'Attributes Form' section of the layer properties..", | ||
"examples": [ { "expression":"formatted_attributes()['type']", "returns":"value stored in 'type' attribute for the current feature formatted as defined in the 'Attributes Form' section of the layer properties."}] }, | ||
{ "variant": "Variant 2", | ||
"variant_description": "Allows the target feature and the layer to be specified.", | ||
"arguments": [ {"arg":"feature","description":"a feature"}, {"arg":"layer","description":"a vector layer"}], | ||
"examples": [ { "expression":"formatted_attributes( feature, 'regions' )['name']", "returns":"value stored in 'name' attribute for the 'feature' belonging to layer 'regions', formatted as defined in the 'Attributes Form' section of the layer properties."}] } | ||
] | ||
} |
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