-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
What is the bug?
After Updating GDAL in my conda environment, reading administrative boundaries returns wrong results. Compare attached ogrinfo output from GDAL 3.12.1 vs. 3.10.3.
Steps to reproduce the issue
ogrinfo -q -ro -oo INTERLEAVED_READING=YES -sql "select osm_id, name, OGR_GEOM_AREA FROM multipolygons WHERE boundary = 'administrative' and name in ('Hessen', 'Kassel')" -geom=summary hessen-251219.osm.pbf
Layer name: multipolygons
OGRFeature(multipolygons):62598
osm_id (String) = 62598
name (String) = Kassel
OGR_GEOM_AREA (Real) = 3.06793605002074e-07
MULTIPOLYGON : 1 geometries:
POLYGON : 15 points
OGRFeature(multipolygons):62650
osm_id (String) = 62650
name (String) = Hessen
OGR_GEOM_AREA (Real) = 5.25293088499623e-06
MULTIPOLYGON : 2 geometries:
POLYGON : 15 points
POLYGON : 12 points
OGRFeature(multipolygons):3334871
osm_id (String) = 3334871
name (String) = Kassel
OGR_GEOM_AREA (Real) = 0.00281285716214999
MULTIPOLYGON : 4 geometries:
POLYGON : 52 points
POLYGON : 22 points
POLYGON : 22 points
POLYGON : 516 points
ogrinfo --version
GDAL 3.12.1 "Chicoutimi", released 2025/12/12
ogrinfo -q -ro -oo INTERLEAVED_READING=YES -sql "select osm_id, name, OGR_GEOM_AREA FROM multipolygons WHERE boundary = 'administrative' and name in ('Hessen', 'Kassel')" -geom=summary hessen-251219.osm.pbf
Layer name: multipolygons
OGRFeature(multipolygons):62598
osm_id (String) = 62598
name (String) = Kassel
OGR_GEOM_AREA (Real) = 0.0137656877186531
MULTIPOLYGON : 3 geometries:
POLYGON : 15 points
POLYGON : 2797 points
POLYGON : 107 points
OGRFeature(multipolygons):62650
osm_id (String) = 62650
name (String) = Hessen
OGR_GEOM_AREA (Real) = 2.68138578373946
MULTIPOLYGON : 2 geometries:
POLYGON : 22702 points, 2 inner rings (15 points, 25 points)
POLYGON : 98 points, 1 inner rings (12 points)
OGRFeature(multipolygons):3334871
osm_id (String) = 3334871
name (String) = Kassel
OGR_GEOM_AREA (Real) = 0.00281285716214999
MULTIPOLYGON : 4 geometries:
POLYGON : 52 points
POLYGON : 22 points
POLYGON : 22 points
POLYGON : 516 points
ogrinfo --version
GDAL 3.10.3, released 2025/04/01
Versions and provenance
Windows 11
GDAL 3.12.1 and GDAL 3.11.5 having this bug
GDAL 3.10.3 not having this bug
Additional context
No response