QGIS Algorithm provided by QGIS Check validity (qgis:checkvalidity). This algorithm performs a validity check on the geometries of a vector layer. The geometries are classified in three groups (valid, invalid and error), and a vector layer is generated with the features in each of these categories. By default the algorithm uses the strict OGC definition of polygon validity, where a polygon is marked as invalid if a self-intersecting ring causes an interior hole. If the "Ignore ring self intersections" option is checked, then this rule will be ignored and a more lenient validity check will be performed. The GEOS method is faster and performs better on larger geometries, but is limited to only returning the first error encountered in a geometry. The QGIS method will be slower but reports all errors encountered in the geometry, not just the first.
qgis_checkvalidity(
INPUT_LAYER = qgisprocess:::qgis_default_value(),
METHOD = qgisprocess:::qgis_default_value(),
IGNORE_RING_SELF_INTERSECTION = qgisprocess:::qgis_default_value(),
VALID_OUTPUT = qgisprocess:::qgis_default_value(),
INVALID_OUTPUT = qgisprocess:::qgis_default_value(),
ERROR_OUTPUT = qgisprocess:::qgis_default_value(),
...,
.complete_output = .complete_output_option(),
.quiet = .quiet_option(),
.messages = .message_option()
)
source
- Input layer. Path to a vector layer.
enum
of ("The one selected in digitizing settings", "QGIS", "GEOS")
- Method. Number of selected option, e.g. '1'. Comma separated list of options, e.g. '1,3'.
boolean
- Ignore ring self intersections. 1 for true/yes. 0 for false/no. field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field. expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression.
sink
- Valid output. Path for new vector layer.
sink
- Invalid output. Path for new vector layer.
sink
- Error output. Path for new vector layer.
further parameters passed to qgisprocess::qgis_run_algorithm()
logical specifying if complete out of qgisprocess::qgis_run_algorithm()
should be used (TRUE
) or first output (most likely the main) should read (FALSE
). Default value is TRUE
.
logical specifying if parameter .quiet
for qgisprocess::qgis_run_algorithm()
Default value is TRUE
.
logical specifying if messages from qgisprocess::qgis_run_algorithm()
should be printed (TRUE
) or not (FALSE
). Default value is FALSE
.
ERROR_COUNT - outputNumber - Count of errors
ERROR_OUTPUT - outputVector - Error output
INVALID_COUNT - outputNumber - Count of invalid features
INVALID_OUTPUT - outputVector - Invalid output
VALID_COUNT - outputNumber - Count of valid features
VALID_OUTPUT - outputVector - Valid output