Skip to content
Snippets Groups Projects

Extended filenames as dict

Merged Rémi Cresson requested to merge 102-pythonic_ext_fname into develop
Compare and Show latest version
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -143,13 +143,14 @@ def test_ext_fname():
"box": "0:0:20:20"
}
)
_check("box=0:0:10:10&nodata=0&gdal:co:COMPRESS=DEFLATE")
_check("nodata=0&gdal:co:COMPRESS=DEFLATE")
# Check that the bbox is the one specified in the filepath, not the one
# specified in `ext_filename`
_check("nodata=0&gdal:co:COMPRESS=DEFLATE&box=0:0:10:10")
assert INPUT.write(
"/tmp/test_write.tif?&box=0:0:10:10",
ext_fname="nodata=0&gdal:co:COMPRESS=DEFLATE&box=0:0:20:20"
)
_check("box=0:0:10:10&nodata=0&gdal:co:COMPRESS=DEFLATE")
_check("nodata=0&gdal:co:COMPRESS=DEFLATE&box=0:0:10:10")
INPUT["out"].filepath.unlink()
Loading