From df3f9a12ccab83d18e15bbd3ab17b6c6133226ee Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Wed, 16 Apr 2025 18:29:55 +0200 Subject: [PATCH] Expressions - Add 2 examples with @layer_cursor_point about raster maptip --- resources/function_help/json/raster_attributes | 3 +++ resources/function_help/json/raster_value | 3 +++ 2 files changed, 6 insertions(+) diff --git a/resources/function_help/json/raster_attributes b/resources/function_help/json/raster_attributes index 792c8b6eb86..9fd80d35072 100644 --- a/resources/function_help/json/raster_attributes +++ b/resources/function_help/json/raster_attributes @@ -16,6 +16,9 @@ "examples": [{ "expression": "raster_attributes('vegetation', 1, raster_value('vegetation', 1, make_point(1,1)))", "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"] } diff --git a/resources/function_help/json/raster_value b/resources/function_help/json/raster_value index d84496c7286..8802d3b9127 100644 --- a/resources/function_help/json/raster_value +++ b/resources/function_help/json/raster_value @@ -16,6 +16,9 @@ "examples": [{ "expression": "raster_value('dem', 1, make_point(1,1))", "returns": "25" + },{ + "expression": "raster_value('ndvi', 2, @layer_cursor_point)", + "returns": "25" }], "tags": ["provided", "point", "raster", "found"] }