Skip to content

Fix invalid or corrupt geometries in data sources that have them #60

Description

@florisvdh

This applies to the next data source versions (2023); wouldn't do this anymore for current data sources. It was observed that at least QGIS can struggle with this. After fixing geometries in R (st_make_valid()), the below job ran. In #50 (comment) we had decided not to do the fix. However this observation shows we'd better done that.

image

EDIT: further reference is #54 (comment)

Further background: https://r-spatial.org/r/2017/03/19/invalid.html, and updates indicated by https://r-spatial.github.io/sf/news/index.html#version-09-0 and r-spatial/sf#989 (note that only lwgeom::lwgeom_make_valid() still reflects sf::st_make_valid() behaviour at the time of the r-spatial tutorial, i.e. for the corrupt geometry p[5]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions