QGIS/resources/function_help/json/raster_attributes

22 lines
780 B
Plaintext
Raw Permalink Normal View History

2022-10-27 10:34:24 +02:00
{
"name": "raster_attributes",
"type": "function",
"groups": ["Rasters"],
2022-11-10 13:04:40 +01:00
"description": "Returns a map with the fields names as keys and the raster attribute table values as values from the attribute table entry that matches the given raster value.",
2022-10-27 10:34:24 +02:00
"arguments": [{
"arg": "layer",
"description": "the name or id of a raster layer"
}, {
"arg": "band",
2022-11-10 13:04:40 +01:00
"description": "the band number for the associated attribute table lookup."
2022-10-27 10:34:24 +02:00
}, {
"arg": "value",
"description": "raster value"
}],
"examples": [{
"expression": "raster_attributes('vegetation', 1, raster_value('vegetation', 1, make_point(1,1)))",
"returns": "{'class': 'Vegetated', 'subclass': 'Trees'}"
}],
"tags": ["provider", "point", "raster", "found", "attributes"]
}