GeoTIFF / georaster-layer-for-leaflet-example

Simple Example of GeoRasterLayer for Leaflet
https://geotiff.github.io/georaster-layer-for-leaflet-example/
Apache License 2.0
78 stars 26 forks source link

Cloud Optimized GeoTIFFs are shown pixelated #9

Open kannes opened 3 years ago

kannes commented 3 years ago

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):

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: https://github.com/GeoTIFF/georaster-layer-for-leaflet-example/blob/9d3b10d1ceec1fb6b34ccb08b6ee5fda2b090cbf/main.js#L33

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

RLC92 commented 3 years ago

I want to second this notion, I would like more documentation on how this feature works, and if possible/necessary a way to render at native resolution.