2019-06-27 18:40:30 +10:00
|
|
|
{
|
|
|
|
"name": "attributes",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Record and Attributes"],
|
2019-06-27 18:40:30 +10:00
|
|
|
"description": "Returns a map containing all attributes from a feature, with field names as map keys.",
|
2022-01-07 08:33:29 -05:00
|
|
|
"variants": [{
|
|
|
|
"variant": "Variant 1",
|
|
|
|
"variant_description": "Returns a map of all attributes from the current feature.",
|
|
|
|
"examples": [{
|
|
|
|
"expression": "attributes()['name']",
|
|
|
|
"returns": "value stored in 'name' attribute for the current feature"
|
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
"variant": "Variant 2",
|
|
|
|
"variant_description": "Allows the target feature to be specified.",
|
|
|
|
"arguments": [{
|
|
|
|
"arg": "feature",
|
|
|
|
"description": "a feature"
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "attributes( @atlas_feature )['name']",
|
|
|
|
"returns": "value stored in 'name' attribute for the current atlas feature"
|
|
|
|
}]
|
|
|
|
}],
|
|
|
|
"tags": ["attributes", "names", "field", "keys", "containing", "map"]
|
2019-06-27 18:40:30 +10:00
|
|
|
}
|