Skip to content

Commit

Permalink
Merge pull request #10808 from rouault/fix_10805
Browse files Browse the repository at this point in the history
Python bindings: clarify destNameOrDestDS semantics regarding updates
  • Loading branch information
rouault committed Sep 27, 2024
2 parents 8055974 + 4606665 commit de392b9
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions swig/include/python/gdal_python.i
Original file line number Diff line number Diff line change
Expand Up @@ -3005,7 +3005,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 @@ -3421,6 +3426,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 @@ -3688,6 +3700,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 @@ -4043,7 +4060,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 @@ -4212,6 +4234,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

0 comments on commit de392b9

Please sign in to comment.