1

I'm trying to do a simple modification of changing field type to vector table by using the tool Refactor Fields. However, the output log returns the following error message, every time:

Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\qgis\FieldsMapper.py", line 132, in processAlgorithm
return super().processAlgorithm(parameters, context, feeback)
_core.QgsProcessingException: Feature (18) has invalid geometry. Please fix the geometry or change the Processing setting to the "Ignore invalid input features" option.

Execution failed after 0.17 seconds

It would be OK for me to ignore invalid input features, but there is no such option in the processing settings of this tool (see image). I'm using QGIS 3.6.1. Any suggestions?enter image description here

0

Try going to Options > Settings > Processing and under General -> Invalid features processing select Do not filter (better performance) or Skip (ignore) features with invalid geometries

enter image description here

0

I would consider fixing the bad geometries first, rather than having them lurking around for the refactoring, as well as any subsequent downstream operations. Try the Fix Geometies tool. I'm not sure when it was introduced, but it is available at 3.14.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.