• Blog posts

    Bio

    By David Crowther

    QGIS___Ignore_Invalid_Geometry_when_Geoprocessing_-_1.PNG

    Question:

    When I run a QGIS Geoprocessing task it keeps failing saying there is invalid geometry – what can I do to resolve this?

    Answer:

    QGIS has a Processing Toolbox with a multitude of tools that allow you to run both raster and Vector geoprocessing functions.

    QGIS___Ignore_Invalid_Geometry_when_Geoprocessing_-_2.PNG

    However, there can be times that you run a geoprocessing tool and you receive an error message similar to the below.

    QGIS___Ignore_Invalid_Geometry_when_Geoprocessing_-_3.PNG

    The reason that this occurs, is that the file/layer that you are processing has invalid geometry and QGIS lets you know that you must either correct the geometric errors, or you can ignore them. We would always advise that you should correct your geometric errors before continuing, however if you wish to ignore this rule then you can apply an alternate setting.

    From the Settings menu choose > Options and then the Processing sub menu.

    In the Processing menu choose the General section and here you can change the setting for handling invalid features from ‘Stop Algorithm’ to ‘Skip (ignore) features with invalid geometry’.

    QGIS___Ignore_Invalid_Geometry_when_Geoprocessing_-_4.PNG

    Now – the next time you run a Geoprocessing tool, even if the input layer has invalid geometry, those features will be skipped (ignored) and the task will continue to conclusion and provide you with an output!