Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
geoarray
Commits
624f8cbf
Commit
624f8cbf
authored
Nov 22, 2021
by
Daniel Scheffler
Browse files
Removed test_save_meta_GTiff_compress.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
4a817323
Pipeline
#35115
passed with stages
in 3 minutes and 1 second
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/test_geoarray.py
View file @
624f8cbf
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment