Commit 624f8cbf authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Removed test_save_meta_GTiff_compress.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 4a817323
Pipeline #35115 passed with stages
in 3 minutes and 1 second
......@@ -533,22 +533,6 @@ class Test_GeoArray(TestCase):
self.assertFalse(diff)
# os.system(f'gdalinfo {p_out}')
def test_save_meta_GTiff_compress(self):
gA = _get_gA_inMem_notInMem(path_subset_tif)[0][1]
with TemporaryDirectory(prefix='geoarray__') as td:
p_out = os.path.join(td, 'outfile.tif')
gA.save(p_out, fmt='GTiff', creationOptions=['COMPRESS=DEFLATE'])
# compare gdalinfo output
gdalinfo_out = [i + '\n' for i in getoutput(f'gdalinfo {p_out}').split('\n')]
gdalinfo_orig = [i + '\n' for i in getoutput(f'gdalinfo {path_subset_tif}').split('\n')]
diff = ''.join(list(unified_diff(gdalinfo_orig[2:], gdalinfo_out[2:])))
self.assertFalse(diff)
# os.system(f'gdalinfo {p_out}')
def test_show(self):
# test 3D case
self.gA.show()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment