Skip to content

tiles: make the internal tile extent of vector tiles configurable - #595

Open
cportele wants to merge 2 commits into
masterfrom
tiles-configurable-tile-extent
Open

tiles: make the internal tile extent of vector tiles configurable#595
cportele wants to merge 2 commits into
masterfrom
tiles-configurable-tile-extent

Conversation

@cportele

@cportele cportele commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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.

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.
@cportele
cportele requested a review from azahnen as a code owner August 7, 2026 14:39
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.

tiles: make the internal tile extent of vector tiles configurable

1 participant