mapbox / mapbox/tippecanoe

Understanding resolution and simplification

Open
#613 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
3.1k
Forks
430
PR merge metrics
No merged PRs in 30d

Description

Hi there,

I have a tileset built from geojson containing the coastline of the world. I've created this tileset with the following parameters, which works great:
```
tippecanoe -P -z11 --drop-smallest-as-needed -o output.mbtiles ...
```

What I would like to do is create a second tileset, but one that:
1- only has zoom 6
2- has the same level of detail at zoom 6, that the original tileset has at zoom 10

This second set (unlike the first) is not intended to be rendered. It is intended to be queried programatically, where the client needs to get the features at the resolution akin to zoom10 of the first dataset, but we do not want the client to make hundreds of requests (at zoom10). Instead we want the client to make a single request to one tile at zoom 6 to get all the features...

To produce this, I've tried the following:
```
tippecanoe \
--read-parallel \
--minimum-zoom=6 \
--maximum-zoom=6 \
--no-line-simplification \
--no-tiny-polygon-reduction \
--no-feature-limit \
--no-tile-size-limit \
--full-detail=16 \
--output=output.mbtiles ...
```

I appreciate the tiles will be massive in this tileset, but that's ok. However, the features do not come out at the same detail as the original tileset at zoom 10. Here is an example screenshot (blue is the zoom10 of the original tileset, and red is the same feature at zoom6 in the second tileset).

screen shot 2018-07-26 at 13 56 05

I might end up doing this trick at zoom 8 or something where the tile mb size doesn't get too crazy, but this is a theoretical question more than anything else. How would I produce a tileset that has it's zoom 6 at the same resolution as the original zoom 10?

Is that possible with tippecanoe?

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reviewing tippecanoe's zoom-level, simplification, and tile-generation behavior for the supplied command options; done would be determining whether a zoom 6 tile can preserve zoom 10 detail and documenting the supported approach or limitation.

Written by the indexing model from the issue text.

Assessment

Domain
cli, data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.