mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
Expressions - Add 2 examples with @layer_cursor_point about raster maptip
This commit is contained in:
parent
3cf314fcdd
commit
df3f9a12cc
@ -16,6 +16,9 @@
|
|||||||
"examples": [{
|
"examples": [{
|
||||||
"expression": "raster_attributes('vegetation', 1, raster_value('vegetation', 1, make_point(1,1)))",
|
"expression": "raster_attributes('vegetation', 1, raster_value('vegetation', 1, make_point(1,1)))",
|
||||||
"returns": "{'class': 'Vegetated', 'subclass': 'Trees'}"
|
"returns": "{'class': 'Vegetated', 'subclass': 'Trees'}"
|
||||||
|
}, {
|
||||||
|
"expression": "raster_attributes('vegetation', 1, raster_value('vegetation', 1, @layer_cursor_point))",
|
||||||
|
"returns": "{'class': 'Vegetated', 'subclass': 'Trees'}"
|
||||||
}],
|
}],
|
||||||
"tags": ["provider", "point", "raster", "found", "attributes"]
|
"tags": ["provider", "point", "raster", "found", "attributes"]
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
"examples": [{
|
"examples": [{
|
||||||
"expression": "raster_value('dem', 1, make_point(1,1))",
|
"expression": "raster_value('dem', 1, make_point(1,1))",
|
||||||
"returns": "25"
|
"returns": "25"
|
||||||
|
},{
|
||||||
|
"expression": "raster_value('ndvi', 2, @layer_cursor_point)",
|
||||||
|
"returns": "25"
|
||||||
}],
|
}],
|
||||||
"tags": ["provided", "point", "raster", "found"]
|
"tags": ["provided", "point", "raster", "found"]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user