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

dataset_like can not work with multiband source rasters #65

Open
MAfarrag opened this issue Jan 17, 2024 · 0 comments
Open

dataset_like can not work with multiband source rasters #65

MAfarrag opened this issue Jan 17, 2024 · 0 comments

Comments

@MAfarrag
Copy link
Member

The dataset_like method does not operate on every single band, so if the given array is 3D array the method will give an error.

The method also takes path as a parameter and this needs to be deprecated.

[pyramids] pyramids/dataset.py (Lines 1084-1088)


dst_obj.raster.GetRasterBand(1).WriteArray(array)
        if path is not None:
            dst_obj.raster.FlushCache()
            dst_obj = None

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

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

1 participant