mapbox / mapbox/tippecanoe

Array mode for --accumulate-attribute

Open
#839 0 comments 1 reaction 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

Could --accumulate-attribute please support an array mode? Instead of just appending values to a comma separated string: `foo,bar`, an actual array would work much better with Mapbox-GL's `in` operator: `["foo", "bar"]`

Up for discussion whether every attribute would be wrapped in an array even when a singleton, or only accumulations.

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 locating the --accumulate-attribute entry point and the code that currently appends values into comma-separated strings. Review how command-line options are parsed and how accumulated attributes are serialized, then determine and test whether singleton values and repeated values should both become arrays. Done means the option emits Mapbox-GL-compatible arrays with documented behavior.

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.