Skip to content

Reading an invalid geometry from an ESRI shapefile displays the geometry as valid (using gdal-master channel). #14419

@KriWay-LV

Description

@KriWay-LV

What is the bug?

We have an invalid geometry in a shapefile, and when we read that shapefile using the GDAL version from the GDAL-master channel, that geometry is marked as valid.

Steps to reproduce the issue

test_isvalid.py

Steps in script:

  • Demonstrate that the WKT is not valid.
  • Create a GeoPackage using OGR and show that the geometry is still not valid.
  • Create a shapefile using OGR and show that the geometry is now valid.

Versions and provenance

We tested against the gdal-master channel.

gdal 3.12.99 py313h6de05c7_2112 gdal-master
libgdal-core 3.12.99 h977623c_2112 gdal-master
GDAL 3.13.0beta1, released 2026/04/20

Operating system: Windows 11

Additional context

This bug was observed during a test of geofileops against GDAL-master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    not for AI loversSee https://gdal.org/en/stable/community/ai_tool_policy.html

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions