Skip to content

[BUG] some polygon features are generated with invalid geometries #298

Description

@spwoodcock

Describe the bug

I have a bunch of building polygons from a data extract:

Image

Running the QGIS 'Check validity' algorithm, I identify 7 invalid geoms:

Image

The errors are identified as IGNORE_RING_SELF_INTERSECTION. You can see the self-intersection here:

Image

Running the QGIS 'Fix geometries' algorithm, we can remove the self- intersection automatically:

Image

Expected behavior

Now I'm not sure if this 'invalid' geoms are the result of:

  1. raw-data-api taking the OSM nodes as they are (so the geom accurately reflects the error produced by the user). In which case, not solvable.
  2. Something going wrong in the OSM XML --> geometry conversion process, resulting in errors such as self-intersecting polygons.

My assumption is it's probably (1), but I thought I would document this just in case.

The data extract to reproduce this:

283_map_features.geojson.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requestedrepo:raw-data

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions