Skip to content

dataset_like can not work with multiband source rasters #65

Description

@MAfarrag

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions