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

Add mixin methods to MemoryDataset #2871

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rasterio/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
DatasetWriterBase,
BufferedDatasetWriterBase,
MemoryFileBase,
MemoryDataset as _MemoryDataset
)
from rasterio.windows import WindowMethodsMixin
from rasterio.env import ensure_env
Expand Down Expand Up @@ -160,6 +161,11 @@ def __exit__(self, *args):
self.close()


class MemoryDataset(_MemoryDataset, TransformMethodsMixin, WindowMethodsMixin):
"""An in-memory Dataset object that uses an array for its storage"""
pass


class _FilePath(FilePathBase):
"""A BytesIO-like object, backed by a Python file object.

Expand Down