Skip to content

Ignore invalid geometries #11

@daarizap

Description

@daarizap

Hi, I have been running the clip command from QGIS in R using RQGIS3 package. Everything goes fine except when I use as the input layer a vector with some invalid geometries. QGIS can be set to ignore such invalid geometries and still perform the clipping (or any other action) but in RQGIS3 I get the following error:

Error in py_call_impl(callable, dots$args, dots$keywords) :
QgsProcessingException: There were errors executing the algorithm.

I don't send info about the R session as this is not caused by the code (which works well when I use another input vector with no invalid geometries). So my question is more about whether there is an option to run the clipping command (or any other command) using RQGIS3 and set it to ignore the invalid geometries and still perform the clipping. (I could not find information about this in the package documentation). In QGIS this can be done by just adjusting the configurations.

Fixing the geometry of the vector is not an option. I have already tried this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions