You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
COGs are skewed at lower zoom levels. This only happens when the data gets loaded directly using the URL. Loading the file into an arrayBuffer works correctly, but this obviously defeats the purpose of COGs. (sample code below)
To Reproduce
asyncaddGeoRasterToMap(url: string){/* Option that works */letarrayBuffer=awaitfetch(url).then(response=>response.arrayBuffer());letgeoraster: GeoRaster=awaitparseGeoRaster(arrayBuffer);/* Option that does not work correctly */letgeoraster: GeoRaster=awaitparseGeoRaster(url);constlayer=newGeoRasterLayer({georaster: georaster,})this._leafletMap.addLayer(layer);}
Expected behavior
A clear and concise description of what you expected to happen. Screenshots
Lower zoom level shows skewed result:
Higher zoom levels gradually get increasingly more accurate:
Same data using arrayBuffer:
Desktop (please complete the following information):
OS: macOS
Browser: Firefox
Version 107.0
Additional context
I can provide the used geotiff file, although it seems to happen on all geotiff files I currently have available to me.
Looks like the problem is that the COG files use EPSG:4326 projection and leaflet is using EPSG:3857
The text was updated successfully, but these errors were encountered:
Describe the bug
COGs are skewed at lower zoom levels. This only happens when the data gets loaded directly using the URL. Loading the file into an arrayBuffer works correctly, but this obviously defeats the purpose of COGs. (sample code below)
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Lower zoom level shows skewed result:
Higher zoom levels gradually get increasingly more accurate:
Same data using arrayBuffer:
Desktop (please complete the following information):
Additional context
I can provide the used geotiff file, although it seems to happen on all geotiff files I currently have available to me.
Looks like the problem is that the COG files use EPSG:4326 projection and leaflet is using EPSG:3857
The text was updated successfully, but these errors were encountered: