Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gaetano Raffaele
moringa
Commits
fe2e24bd
Commit
fe2e24bd
authored
Mar 29, 2021
by
Gaetano Raffaele
Browse files
FIX: problem with bounds coordinate in elevation.
parent
d5fd9b37
Changes
1
Hide whitespace changes
Inline
Side-by-side
s1process.py
View file @
fe2e24bd
...
...
@@ -68,7 +68,7 @@ def download_srtm1(roi_vector, outfile, cache_dir=Path('~/.moringa/cache').expan
# bounds = gpd.read_file(roi_vector).to_crs(4326).bounds.values[0, :]
# bounds = getSQLiteExtent_WGS84(roi_vector)
bounds
=
getGeoJSONExtent_WGS84
(
roi_vector
)
bounds
=
[
bounds
[
i
]
for
i
in
[
1
,
0
,
3
,
2
]]
#
bounds = [bounds[i] for i in [1,0,3,2]]
elevation
.
clip
(
bounds
,
outfile
,
cache_dir
=
cache_dir
,
max_download_tiles
=
max_download_tiles
)
return
outfile
...
...
Write
Preview
Markdown
is supported
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