Skip to content

Geom refactor #1396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jan 19, 2021
Merged

Geom refactor #1396

merged 11 commits into from
Jan 19, 2021

Conversation

joto
Copy link
Collaborator

@joto joto commented Jan 18, 2021

This PR fixes #1394 and another bug. To better debug this and as part of the work we want to do anyway of refactoring the geometry code, I have already refactored some of the code and added tests. The refactored code is certainly not perfect and I expect more iterations until we see clearly how to best separate out the many functions.

joto added 11 commits January 18, 2021 18:11
Moves the linestring splitting into its own function split_linestring
and add tests. They show that the original function created invalid
linestrings in some cases, so this also fixes the algorithm.
Relations consisting of exactly two ways connected end-to-end where one
way needs to be turned around to form a real ring were not built
correctly. This fixes this problem and adds a lot of tests.
This is to avoid confusion with the equality operator which uses a
different logic.
@lonvia lonvia merged commit 8d21d71 into osm2pgsql-dev:master Jan 19, 2021
@joto joto deleted the geom-refactor branch January 30, 2021 14:29
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.

Ghost ways from rendering
2 participants