Skip to content

Add support for checking for Multi* geometries in BDD tests - #2417

Merged
joto merged 2 commits into
osm2pgsql-dev:masterfrom
lonvia:bdd-add-multigeometries
Sep 17, 2025
Merged

Add support for checking for Multi* geometries in BDD tests#2417
joto merged 2 commits into
osm2pgsql-dev:masterfrom
lonvia:bdd-add-multigeometries

Conversation

@lonvia

@lonvia lonvia commented Sep 16, 2025

Copy link
Copy Markdown
Collaborator

This adds new syntax options for expressing a geometry in the BDD tests:

[ <geometry>; ... ]

will mean that you expect a MULTI* geometry. The geometries need to be of the same type, obviously.

{ <geometry>; ... }

means to expect a GEOMETRYCOLLECTION. The inner geometries can be arbitrary simple types. No multi geometries, no collections.

This makes the tests involving multi geometries and collections considerably simpler. It incidentally also works around a bug with ST_GeometryN in PostGIS 3.6.0.

NB: also changes the CI to using pbf for tests as xml files are not offered anymore by Geofabrik.

Geofabrik doesn't see to have osm.bz2 files anymore.
@joto
joto merged commit f7991ab into osm2pgsql-dev:master Sep 17, 2025
24 checks passed
@lonvia
lonvia deleted the bdd-add-multigeometries branch May 27, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants