Skip to content

Shapefile driver: read arcs as MultiLineString and polygons as MultiPolygon#14662

Open
rouault wants to merge 2 commits into
OSGeo:masterfrom
rouault:shapefile_promote_to_multi
Open

Shapefile driver: read arcs as MultiLineString and polygons as MultiPolygon#14662
rouault wants to merge 2 commits into
OSGeo:masterfrom
rouault:shapefile_promote_to_multi

Conversation

@rouault
Copy link
Copy Markdown
Member

@rouault rouault commented May 26, 2026

On reading, layers with LineString (resp. Polygon)
are automatically exposed as MultiLineString (resp. MultiPolygon) at
the layer geometry type and feature's geometry level. This is aimed at
avoiding later issues when converting to formats that do not accept mixing
single and multi-geometries.
GDAL < 3.14 behavior can be obtained by setting the PROMOTE_TO_MULTI open
option, or the :config:SHAPE_PROMOTE_TO_MULTI configuration option, to NO.

Refs #14602

@rouault rouault added this to the 3.14.0 milestone May 26, 2026
@rouault rouault added the funded through GSP Work funded through the GDAL Sponsorship Program label May 26, 2026
@rouault rouault added the Breaking! Tag a breaking change label May 26, 2026
@rouault rouault force-pushed the shapefile_promote_to_multi branch 4 times, most recently from 66d4bca to 8b50328 Compare May 26, 2026 20:11
rouault added 2 commits May 27, 2026 01:51
…olygon

On reading, layers with LineString (resp. Polygon)
are automatically exposed as MultiLineString (resp. MultiPolygon) at
the layer geometry type and feature's geometry level. This is aimed at
avoiding later issues when converting to formats that do not accept mixing
single and multi-geometries.
GDAL < 3.14 behavior can be obtained by setting the PROMOTE_TO_MULTI open
option, or the :config:`SHAPE_PROMOTE_TO_MULTI` configuration option, to NO.

Refs OSGeo#14602
@rouault rouault force-pushed the shapefile_promote_to_multi branch from 8b50328 to fad10f7 Compare May 26, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking! Tag a breaking change funded through GSP Work funded through the GDAL Sponsorship Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant