mapbox / mapbox/rio-rgbify

raster edge normalization

Open
#35 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
125
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I have a raster that covers a section of the map. The raster is does not cover a full tile [x,y,z] so the libray fills the remaining space to cover an entire tile. (sky blue on top is what rio-rgbify adds)

![image](https://user-images.githubusercontent.com/1523651/145798491-13967e00-8098-42c3-bb74-3caeffa576bc.png)

The transition from my raster, to the fill added by rio creates an unnatural edge to it which in a hillshade on the map looks like this:

![image](https://user-images.githubusercontent.com/1523651/145797992-5b79d578-40cd-4ffd-a98c-6adbfae6e476.png)

The original raster does not have that intense margin.

Is this the expected behavior ? Do you have any suggestion how to avoid the prominent edge ?

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

No source files, tests, or entry points are named. Reproduce the reported edge on a raster that does not fill a complete tile, then identify the expected behavior and a verifiable way to assess whether the prominent boundary has been addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.