Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
arosics
Commits
09266680
Commit
09266680
authored
Oct 18, 2017
by
Daniel Scheffler
Browse files
Bugfix for not checking validity of GeoArray_CoReg.footprint_poly.
parent
ee227393
Pipeline
#1390
passed with stages
in 1 minute and 51 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
09266680
...
...
@@ -74,7 +74,7 @@ pages: # this job must be called 'pages' to advise GitLab to upload content to
dependencies
:
-
test_arosics
script
:
# Create the public directory
# Create the public directory
-
rm -rf public
-
mkdir public
-
mkdir -p public/doc
...
...
arosics/CoReg.py
View file @
09266680
...
...
@@ -99,6 +99,10 @@ class GeoArray_CoReg(GeoArray):
print
(
'Calculating actual data corner coordinates for %s...'
%
self
.
imName
)
self
.
calc_mask_nodata
(
fromBand
=
self
.
band4match
)
# this avoids that all bands have to be read
# validate footprint poly
if
not
self
.
footprint_poly
.
is_valid
:
self
.
footprint_poly
=
self
.
footprint_poly
.
buffer
(
0
)
if
not
self
.
q
:
print
(
'Bounding box of calculated footprint for %s:
\n\t
%s'
%
(
self
.
imName
,
self
.
footprint_poly
.
bounds
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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