Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiles are completely different the first time they are loaded #672

Open
dzfranklin opened this issue Mar 21, 2025 · 0 comments
Open

Tiles are completely different the first time they are loaded #672

dzfranklin opened this issue Mar 21, 2025 · 0 comments

Comments

@dzfranklin
Copy link

The first time I load a tile I see something complete different from every subsequent load.

process: hillshade.py
zoom_levels:
    min: 8
    max: 12
input:
    dem: copernicus_dem_30m_pentlands_sample.tif
output:
    format: PNG_hillshade
    path: /out
    pixelbuffer: 0
pyramid:
    grid: mercator
process_parameters:
    resampling: bilinear
def execute(mp, resampling):
    with mp.open("dem") as src:
        if src.is_empty(1):
            return "empty"
        else:
            return src.read(1, resampling=resampling)

First load:

Image

Subsequent loads:

Image

I am using mapchete 2025.1.1 installed via pip. I made a script that reproduces the issue in a docker container: https://github.com/dzfranklin/mapchete-inconsistent-repro

The tile written to the output directory matches the first load. I am not sure if the first load is completely correct but it looks closer to the correct hillshading than the second load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant