Use bilinear interpolation for rasters

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

Nobody has claimed this yet.

Assessment

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

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.

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

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

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.

More from mapbox/tilelive-vector

All issues in mapbox/tilelive-vector

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.