Skip to content

Off by one zoom level #669

@normanb

Description

@normanb

I am processing DEMs at zoom level 14. I print the following in my processing function;

print(f"res {dem.tile.transform}")

with a definition of

zoom_levels: 14

pyramid:
    grid: mercator
    pixelbuffer: 2
    metatiling: 1

And I see

| 0.00,-9.55, 4752567.78|
| 0.00, 0.00, 1.00|

So a pixel size of ~9.55 metre which is zoom level 13 at the equator if I am following https://docs.mapbox.com/help/glossary/zoom-level/

It seems that the zoom level reading is off by one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions