Skip to content

Doc: Add Python docstrings to ReadRaster functions - #15256

Merged
dbaston merged 2 commits into
OSGeo:masterfrom
dbaston:doc-readraster
Sep 22, 2026
Merged

dbaston merged 2 commits into
OSGeo:masterfrom
dbaston:doc-readraster

Conversation

@dbaston

@dbaston dbaston commented Sep 16, 2026

Copy link
Copy Markdown
Member

Also fix some errors in ReadAsArray docstrings, and hide ReadRaster1 from documentation

@dbaston dbaston added the documentation Issues and contributions to the documentation content label Sep 16, 2026
Comment thread swig/include/python/gdal_python.i
Comment thread swig/include/python/gdal_python.i
Comment thread swig/include/python/gdal_python.i Outdated
Also fix some errors in ReadAsArray docstrings
Comment thread swig/include/python/gdal_python.i Outdated

Returns
-------
bytearray

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the function also return memoryview if buf_obj is passed in as a memoryview? Should it mention "bytearray, or buf_obj if provided"?

Comment thread swig/include/python/gdal_python.i Outdated
@dbaston
dbaston merged commit 8f283dd into OSGeo:master Sep 22, 2026
33 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issues and contributions to the documentation content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants