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

Missing Tiles on COG edges where tile includes transparency #85

Open
reyemtm opened this issue Nov 16, 2023 · 5 comments
Open

Missing Tiles on COG edges where tile includes transparency #85

reyemtm opened this issue Nov 16, 2023 · 5 comments

Comments

@reyemtm
Copy link

reyemtm commented Nov 16, 2023

Issue
Error in Leaflet using georaster-layer-for-leaflet - SOI not found.

In Node with v 2.0.7+ using geotiff directly - Cannot read properties of undefined (reading 'offset').

Use this raster as [long as it's hosted] inside georaster-layer-for-leaflet:
https://tilestream-cogs.nyc3.digitaloceanspaces.com/OSU_Main_Campus_COG.tif

Expected behavior
Receive an image tile - OpenLayers somehow handles these errors and is able to still return a valid tile, using geotiff version 2.0.7, but in geotiff.js in other applications such as this and in my own testing I cannot get past the errors in the getTileOrStrip code using the same version.

Desktop and Node

The issue cannot be with the geotiff library directly as OL works using the same codebase.

Leaflet

image image

OpenLayers

image
@DanielJDufour
Copy link
Member

Hi, @reyemtm . Thanks for flagging this. I'll take a look.

@DanielJDufour
Copy link
Member

I created a test for this file on my local repo of https://github.com/GeoTIFF/geotiff-tile and at least geotiff-tile successfully renders the tiles. I'll continue to investigate.

As background information, I'm working on getting geotiff-tile into georaster-layer-for-leaflet, so once that's done it should render accurately.

@reyemtm
Copy link
Author

reyemtm commented Nov 17, 2023 via email

@reyemtm
Copy link
Author

reyemtm commented Nov 26, 2023

It looks like the issue is with using -co SPARSE_OK=TRUE when creating a COG in gdal - when I set this option to FALSE I no longer get the error, at least in one test case (different file than the one above).

@DanielJDufour
Copy link
Member

Wow, thanks for tracking that down! Not sure I would have figured that out :-)

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

2 participants