mapbox / mapbox/tippecanoe

Support priority attribute for dropping

Open
#592 4 comments 5 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

There are several mechanisms in Tippecanoe to determine which features to drop when necessary (smallest? densest? random?). For greater control, though, it would be handy to prepare the data to add some "priority" value to each feature, then do something like:

tippecanoe -rg --priority-attribute=priority ...

Then, whenever Tippecanoe needed to drop X features within a tile, it would sort them by the priority column, and drop those with the lowest value first.

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 at the tippecanoe command-line entry point and trace the existing feature-dropping mechanisms described in the issue. Check how feature attributes are read and how features selected for a tile are ordered. Done means the priority attribute is accepted and features with the lowest values are dropped first when a tile must lose features.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, data
Issue type
Feature
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.