mapbox / mapbox/tippecanoe

Gaps and overlaps in tiles on high zoom with -zg

Open
#562 34 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3.1k
Forks
430
PR merge metrics
No merged PRs in 30d

Description

Hi, I've got a small problem with the -zg option, there might be a flag option I'm missing that would sort it out. When I run with -zg it guesses that I want to go down to z8

Choosing a maxzoom of -z6 for features about 5147 feet (1569 meters) apart
Choosing a maxzoom of -z8 for resolution of about 1281 feet (390 meters) within features

However when I zoom in to level 14 it has lots of holes and overlaps, if I generate it to level 14 it looks fine all the way to 20.

Output
![image](https://user-images.githubusercontent.com/23341752/39467794-c58917a4-4d27-11e8-8f5a-ef9e73314e80.png)

If I use -ab the results are much better but still not perfect:
Output
![image](https://user-images.githubusercontent.com/23341752/39467906-5fb40da2-4d28-11e8-8877-c76d3af47236.png)

I'd hoped -pS might help but although the tile file is slightly bigger I can't see any difference in output.

I can provide the geoJSON but I feel this must be a known problem and I'm just failing to find the right flag combo to sort it out. Obviously I can get my tiles by generating all the way to z14 but I'm attracted to the much faster creation and smaller tile file size of only going to z8 if that's possible with my data.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported tile gaps and overlaps at zoom 14 using the -zg option, then compare results with -ab, -pS, and generation through z14. Investigate how -zg selects maxzoom from feature spacing and verify that tiles remain complete and non-overlapping at higher zooms; done means the reported dataset renders correctly without requiring generation through z14.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.