Dropping features for `layer_size` by attribute
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 71
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
When tile `layer_size` is reached (default `1250KB` and max `2500KB`) some features are dropped.
Is it possible to create a `mts-recipe.json` that can control which features are dropped?
I know that you can use `limit` the number of features with an expression, but it requires you to define a `number` of features instead of size (in KB).
Would it be possible to create an expression that would drop features when reaching the size limit?
i.e.
Drop features who have smaller values in attribute called "area".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the mts-recipe.json configuration and the layer_size and limit expression behavior described in the issue. Trace how tile size limits and feature attributes are handled, then verify completion by confirming that a recipe can control which features are dropped, such as features with smaller area values, when the size limit is reached.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-engineering
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100