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

Do not crash for missing block from Map #417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keller-mark
Copy link

Hi, I am encountering a case in which readRasters is failing due to encountering an undefined block during readSliceData. An extra check that each block is present in the Map resolves the issue and allows the image channels to load successfully.

The full error stack:

Uncaught (in promise) TypeError: can't access property "offset" of undefined
    readSliceData blockedsource.js:260
    readSliceData blockedsource.js:248
    fetch blockedsource.js:149
    getTileOrStrip geotiffimage.js:384
    _readRaster geotiffimage.js:478
    readRasters geotiffimage.js:610

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

Successfully merging this pull request may close these issues.

1 participant