Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Oct 27, 2025

maxzoom==0 is the default setting and it is documented to means that there is no expire. That's what the enabled() function checks.

But disabling this in from_bbox() only disabled the expire for that case, not for linestrings. Better to do this check in the function that's called from outside the expire code: from_geometry().

We also need to fix some tests that were using maxzoom==0 by changing their setting to use maxzoom==1.

| 11 |
Then table osm2pgsql_test_expire contains exactly
| zoom | x | y |
| 0 | 0 | 0 |
Copy link
Collaborator

@lonvia lonvia Oct 27, 2025

Choose a reason for hiding this comment

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

Can you adapt the name of the feature in the first line of this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

maxzoom==0 is the default setting and it is documented to means that
there is no expire. That's what the enabled() function checks.

But disabling this in from_bbox() only disabled the expire for that
case, not for linestrings. Better to do this check in the function
that's called from outside the expire code:  from_geometry().

We also need to fix some tests that were using maxzoom==0 by changing
their setting to use maxzoom==1.
@joto joto force-pushed the fix-expire-maxzoom0 branch from 2ed422f to be86625 Compare October 27, 2025 11:57
@lonvia lonvia merged commit 4a85d1b into osm2pgsql-dev:master Oct 28, 2025
24 checks passed
@joto joto deleted the fix-expire-maxzoom0 branch November 2, 2025 09:36
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