mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
22 lines
780 B
Plaintext
22 lines
780 B
Plaintext
{
|
|
"name": "raster_attributes",
|
|
"type": "function",
|
|
"groups": ["Rasters"],
|
|
"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.",
|
|
"arguments": [{
|
|
"arg": "layer",
|
|
"description": "the name or id of a raster layer"
|
|
}, {
|
|
"arg": "band",
|
|
"description": "the band number for the associated attribute table lookup."
|
|
}, {
|
|
"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"]
|
|
}
|