mapbox / mapbox/supermercado

Add optional MultiPolygon output to union

Open
#18 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
132
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Here https://github.com/mapbox/supermercado/blob/master/supermercado/uniontiles.py#L29-L35 we spit out each separate feature as a single feature; let's add an option to output to MultiPolygon

cc @vincentsarago

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 in supermercado/uniontiles.py at lines 29-35, where separate features are emitted. Trace the current union output and determine how an optional MultiPolygon mode should be exposed, then verify that the default behavior still emits separate features and the option produces a MultiPolygon.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.