Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Mar 3, 2022

This disentangles the WKB code from the expire code. There are further refactorings to be done, but they will come in later commits to keep things separate.

from_point_list(geom.get<geom::polygon_t>().outer());
} else if (geom.is_multipolygon()) {
for (auto const &polygon : geom.get<geom::multipolygon_t>()) {
from_point_list(polygon.outer());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code expires all rings here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and force-pushed.

This disentangles the WKB code from the expire code. There are further
refactorings to be done, but they will come in later commits to keep
things separate.
@joto joto force-pushed the geometry-refactor-expire branch from 2e2cff0 to c27ca82 Compare March 4, 2022 13:03
@lonvia lonvia merged commit 308a681 into osm2pgsql-dev:master Mar 4, 2022
@joto joto deleted the geometry-refactor-expire branch March 7, 2022 13:03
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