Skip to content

Cloud Optimized GeoTIFFs are shown pixelated #9

@kannes

Description

@kannes

Describe the bug
Cloud-optimized GeoTIFFs are shown pixelated.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://geotiff.github.io/georaster-layer-for-leaflet-example/examples/load-cog-via-script-tag.html
  2. The image shows pixelation:
    image

Expected behavior
The library should pick the most appropriate overview imagery and by that the image should be rendered with less or "no" pixelation.

Desktop (please complete the following information):

  • Firefox 84.0.1, no page zoom is set.

Additional context
I would guess that the wrong overview level is shown?

The example file uses 256x256 blocks. However in the HTML a resolution of 128 is used. Is that supposed to match? The parameter is not really documented in a way that is clear:

resolution: 64 // optional parameter for adjusting display resolution

Setting the resolution parameter to 256 makes it look good but I have no clue what that actually does.

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