Skip to content

Commit

Permalink
wcs.py: fix incorrect use of gdal.Translate()
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Mar 13, 2024
1 parent 921a68b commit b4ffa4f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions autotest/gdrivers/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,9 @@ def test_wcs_6(wcs_server, tmp_path, server, version):
projwin = [
int(x) for x in setup[server]["Projwin"].replace("-projwin ", "").split()
]
options = [cache]

tmpfile = tmp_path / f"{server}{version}.tiff"
gdal.Translate(str(tmpfile), ds, projWin=projwin, width=size, options=options)
gdal.Translate(str(tmpfile), ds, projWin=projwin, width=size)

assert tmpfile.exists()

Expand All @@ -565,10 +564,7 @@ def test_wcs_6(wcs_server, tmp_path, server, version):

assert ds is not None, f"OpenEx failed: WCS:{url}/?{query}"

options = [cache]
gdal.Translate(
str(tmpfile_non_scaled), ds, srcWin=[0, 0, 2, 2], options=options
)
gdal.Translate(str(tmpfile_non_scaled), ds, srcWin=[0, 0, 2, 2])

assert tmpfile_non_scaled.exists()
else:
Expand Down

0 comments on commit b4ffa4f

Please sign in to comment.