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

Python bindings: clarify destNameOrDestDS semantics regarding updates #10808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
31 changes: 29 additions & 2 deletions swig/include/python/gdal_python.i
Original file line number Diff line number Diff line change
Expand Up @@ -2992,7 +2992,12 @@ def Warp(destNameOrDestDS, srcDSOrSrcDSTab, **kwargs):
Parameters
----------
destNameOrDestDS:
Output dataset name or object
Output dataset name or object.

If passed as a dataset name, a potentially existing output dataset of
the same name will be overwritten. To update an existing output dataset,
it must be passed as a dataset object.

srcDSOrSrcDSTab:
an array of Dataset objects or filenames, or a Dataset object or a filename
kwargs:
Expand Down Expand Up @@ -3408,6 +3413,13 @@ def VectorTranslate(destNameOrDestDS, srcDS, **kwargs):
----------
destNameOrDestDS:
Output dataset name or object

If passed as a dataset name, a potentially existing output dataset of
the same name will be overwritten. To update an existing output dataset,
it must be passed as a dataset object. Note that the accessMode parameter
also controls, at the layer level, if existing layers must be overwritten
or updated.

srcDS:
a Dataset object or a filename
kwargs:
Expand Down Expand Up @@ -3675,6 +3687,11 @@ def Nearblack(destNameOrDestDS, srcDS, **kwargs):
----------
destNameOrDestDS:
Output dataset name or object

If passed as a dataset name, a potentially existing output dataset of
the same name will be overwritten. To update an existing output dataset,
it must be passed as a dataset object.

srcDS:
a Dataset object or a filename
kwargs:
Expand Down Expand Up @@ -4030,7 +4047,12 @@ def Rasterize(destNameOrDestDS, srcDS, **kwargs):
Parameters
----------
destNameOrDestDS:
Output dataset name or object
Output dataset name or object.

If passed as a dataset name, a potentially existing output dataset of
the same name will be overwritten. To update an existing output dataset,
it must be passed as a dataset object.

srcDS:
a Dataset object or a filename
kwargs:
Expand Down Expand Up @@ -4199,6 +4221,11 @@ def Footprint(destNameOrDestDS, srcDS, **kwargs):
----------
destNameOrDestDS:
Output dataset name or object

If passed as a dataset name, a potentially existing output dataset of
the same name will be overwritten. To update an existing output dataset,
it must be passed as a dataset object.

srcDS:
a Dataset object or a filename
kwargs:
Expand Down
Loading