Add Advanced Option to Exclude Specific Attribute Values in Geometry Check (Area) Using Expressions #60099
Labels
Feature Request
Geometry checker
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Feature description
Feature Request Content:
Currently, the Geometry Check (Area) tool performs area-based geometry validation without the ability to exclude specific attribute values using a custom expression. This functionality would be particularly useful for excluding geometries that do not require validation based on certain conditions (e.g., attributes with specific values or particular criteria).
Proposal:
Add an advanced option to the Geometry Check (Area) tool that allows users to define an expression to exclude geometries based on their attribute values. For example:
An input field to enter an SQL-like expression or logical condition.
The ability to exclude geometries whose attributes meet a specific condition (e.g., attribute = 'value_to_exclude' or attribute IS NULL).
Use Case Example:
Suppose we have a polygon layer with an attribute type that can take values such as building, road, river, etc. If we want to exclude from the area check all geometries where the type attribute is equal to road, we could use an expression like:
This way, the tool will perform the area check only on geometries that do not meet the exclusion condition.
Benefits:
Greater flexibility in geometry validation.
Time savings by avoiding unnecessary checks on specific geometries.
Better integration with complex workflows where only certain geometries require validation.
Suggested Implementation:
Add an optional input field in the advanced options panel of the Geometry Check (Area) tool.
Allow the use of simple expressions (e.g., comparisons between attributes and values, logical operators, etc.).
Validate the expression before running the check to avoid syntax errors.
This feature would be a valuable addition for users working with complex datasets who need more control over geometry validation processes.
Additional context
text reworked by deepseek_ai
#59637
The text was updated successfully, but these errors were encountered: