mapbox / mapbox/tilelive-vector

Use bilinear interpolation for rasters

Open
#114 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
72
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Currently we are using nearest neighbor (the mapnik default) interpolation for the raster symbolizer:
https://github.com/mapbox/tilelive-vector/blob/master/templates/layer.xml#L21

Changing it to `scaling="bilinear"` will give better looking output tiles, which is especially important if we move towards resolution rounding as detailed here: https://github.com/mapbox/mapnik-omnivore/issues/133

cc @yhahn @springmeyer @perrygeo

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 templates/layer.xml around line 21, where the raster symbolizer interpolation is configured. Review how this template is used for raster output, then verify that generated tiles use bilinear interpolation and retain the expected appearance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.