Skip to content

Comments

Fix inner/outer ring accessor boost::geometry adaptor types/functions#2319

Merged
lonvia merged 1 commit intoosm2pgsql-dev:masterfrom
joto:fix-ring-access
Apr 22, 2025
Merged

Fix inner/outer ring accessor boost::geometry adaptor types/functions#2319
lonvia merged 1 commit intoosm2pgsql-dev:masterfrom
joto:fix-ring-access

Conversation

@joto
Copy link
Collaborator

@joto joto commented Apr 19, 2025

These types/functions are used to let boost functions access our polygon/ring types. They are supposed to return (const) references.

I found the bug while doing more complicated geometry processing, working on some future code for osm2pgsql. It seems the buggy code does not produce any problems in current code, but I can not guarantee it. Theoretically it could lead to crashes. It might make some code slower, though, because of unnecessary copying.

These types/functions are used to let boost functions access our
polygon/ring types. They are supposed to return (const) references.

I found the bug while doing more complicated geometry processing,
working on some future code for osm2pgsql. It seems the buggy code does
not produce any problems in current code, but I can not guarantee it.
Theoretically it could lead to crashes. It might make some code slower,
though, because of unnecessary copying.
@lonvia lonvia merged commit fd172b4 into osm2pgsql-dev:master Apr 22, 2025
24 checks passed
@joto joto deleted the fix-ring-access branch April 22, 2025 13:17
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