2015-06-11 12:02:27 +10:00
|
|
|
{
|
2015-09-20 17:12:43 +02:00
|
|
|
"name": "attribute",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Record and Attributes"],
|
2019-02-07 12:36:53 +10:00
|
|
|
"description": "Returns an attribute from a feature.",
|
|
|
|
"variants": [
|
|
|
|
{ "variant": "Variant 1",
|
|
|
|
"variant_description": "Returns the value of an attribute from the current feature.",
|
|
|
|
"arguments": [ {"arg":"attribute_name","description":"name of attribute to be returned"}],
|
|
|
|
"examples": [ { "expression":"attribute( 'name' )", "returns":"value stored in 'name' attribute for the current feature"}] },
|
|
|
|
{ "variant": "Variant 2",
|
|
|
|
"variant_description": "Allows the target feature and attribute name to be specified.",
|
|
|
|
"arguments": [ {"arg":"feature","description":"a feature"},
|
|
|
|
{"arg":"attribute_name","description":"name of attribute to be returned"}],
|
|
|
|
"examples": [ { "expression":"attribute( @atlas_feature, 'name' )", "returns":"value stored in 'name' attribute for the current atlas feature"}] }
|
|
|
|
]
|
2015-06-11 12:02:27 +10:00
|
|
|
}
|