Skip to content

Conversation

@systemed
Copy link
Owner

This introduces a new high_resolution parameter in the global layer config.

When set, this uses an extent/resolution of 8192 at the maximum zoom (typically 14), rather than the usual 4096. The effect of this is that geometries continue to look correct when zoomed in up to (say) z18, rather than taking on a wonky appearance from rounding artefacts.

For a building-heavy city extract this results in an .mbtiles filesize increase of around 4%.

Buildings viewed at z18 without this parameter set (look at the nominally straight edges of the terraced buildings):

Screenshot 2022-02-13 at 20 38 37

With it set:

Screenshot 2022-02-13 at 20 38 27

(I did experiment with using round rather than floor at higher zoom levels but, slightly to my surprise, it doesn't appear to make things any better.)

@systemed systemed merged commit 1f9a564 into master Feb 17, 2022
@systemed systemed deleted the hi_res branch March 13, 2022 19:13
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