tiles: make the internal tile extent of vector tiles configurable - #595
Open
cportele wants to merge 2 commits into
Open
tiles: make the internal tile extent of vector tiles configurable#595cportele wants to merge 2 commits into
cportele wants to merge 2 commits into
Conversation
The internal coordinate system of a vector tile was fixed to the tile extent of the tiling scheme, 4096 for WebMercatorQuad. A tileset can now declare its own tile extent, which increases the geometric precision of its tiles and reduces the simplification of their geometries, at the cost of larger tiles. That makes it possible to serve fewer zoom levels and let clients overzoom the last one. The extent of a tileset applies to the encoder, the precision model, the Douglas-Peucker distance, the buffer around a tile and the optimized PostGIS tile generation. A combined tileset encodes with its own extent; a source tileset that uses a different one is rescaled.
The defaults of a tile provider are not merged into its tilesets when the provider is loaded, every use of a tileset has to merge them, and combining did not. A combined tileset that took its tile extent from the tileset defaults was therefore encoded with the tile extent of the tiling scheme, which quantised the coordinates of its source tilesets back down to that extent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes ldproxy/ldproxy#1723
The extent of a tileset applies to the encoder, the precision model, the Douglas-Peucker distance, the buffer around a tile and the optimized PostGIS tile generation. A combined tileset encodes with its own extent; a source tileset that uses a different one is rescaled.