Skip to content
Permalink
Browse files

[processing] include invalid geometries in check validity alg

  • Loading branch information
nirvn committed Jun 26, 2017
1 parent fa8b216 commit 1730bc95d10ea5e45a30767db7466b8c1cc60657
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/qgis/CheckValidity.py
@@ -34,10 +34,12 @@
QgsGeometry,
QgsFeature,
QgsField,
QgsFeatureRequest,
QgsFeatureSink,
QgsWkbTypes,
QgsProcessingUtils,
QgsFields,
QgsProcessingFeatureSource,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterEnum,
QgsProcessingParameterFeatureSink,
@@ -129,7 +131,7 @@ def doCheck(self, method, parameters, context, feedback):
error_fields, QgsWkbTypes.Point, source.sourceCrs())
error_count = 0

features = source.getFeatures()
features = source.getFeatures(QgsFeatureRequest(), QgsProcessingFeatureSource.FlagSkipGeometryValidityChecks)
total = 100.0 / source.featureCount() if source.featureCount() else 0
for current, inFeat in enumerate(features):
if feedback.isCanceled():

1 comment on commit 1730bc9

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on 1730bc9 Jun 26, 2017

Perfect!

Please sign in to comment.
You can’t perform that action at this time.