From 660990e0d82289b6bf06a9efca6fcc3f9679646f Mon Sep 17 00:00:00 2001 From: Mathieu Pellerin Date: Tue, 3 Jan 2023 09:10:56 +0700 Subject: [PATCH] Follow up 7e2e622 : improve functions help --- resources/function_help/json/is_attribute_valid | 8 ++++---- resources/function_help/json/is_feature_valid | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/function_help/json/is_attribute_valid b/resources/function_help/json/is_attribute_valid index d763aaefd7f..dea95ee8e67 100644 --- a/resources/function_help/json/is_attribute_valid +++ b/resources/function_help/json/is_attribute_valid @@ -8,11 +8,11 @@ "description": "an attribute name" },{ "arg": "feature", - "description": "A feature. If not set, the feature attached to the expression context will be used.", + "description": "A feature. If not set, the current feature will be used.", "optional": true },{ "arg": "layer", - "description": "A vector layer. If not set, the layer attached to the expression context will be used.", + "description": "A vector layer. If not set, the current layer will be used.", "optional": true },{ "arg": "strength", @@ -21,10 +21,10 @@ }], "examples": [{ "expression": "is_attribute_valid('HECTARES')", - "returns": "TRUE" + "returns": "TRUE if the current feature's value in the \"HECTARES\" field meets all constraints." }, { "expression": "is_attribute_valid('HOUSES',get_feature('my_layer', 'FID', 10), 'my_layer')", - "returns": "FALSE" + "returns": "FALSE if the value in the \"HOUSES\" field from the feature with \"FID\"=10 in 'my_layer' fails to meet all constraints." }], "tags": ["constraints", "hard", "soft"] } diff --git a/resources/function_help/json/is_feature_valid b/resources/function_help/json/is_feature_valid index 37c9ff8432a..3b2e048031f 100644 --- a/resources/function_help/json/is_feature_valid +++ b/resources/function_help/json/is_feature_valid @@ -5,11 +5,11 @@ "description": "Returns TRUE if a feature meets all field constraints.", "arguments": [{ "arg": "feature", - "description": "A feature. If not set, the feature attached to the expression context will be used.", + "description": "A feature. If not set, the current feature will be used.", "optional": true },{ "arg": "layer", - "description": "A vector layer. If not set, the layer attached to the expression context will be used.", + "description": "A vector layer. If not set, the current layer will be used.", "optional": true },{ "arg": "strength", @@ -18,10 +18,10 @@ }], "examples": [{ "expression": "is_feature_valid(strength:='hard')", - "returns": "TRUE" + "returns": "TRUE if all fields from the current feature meet their hard constraints." }, { "expression": "is_feature_valid(get_feature('my_layer', 'FID', 10), 'my_layer')", - "returns": "FALSE" + "returns": "FALSE if all fields from feature with \"FID\"=10 in 'my_layer' fails to meet all constraints." }], "tags": ["constraints", "hard", "soft"] }