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
earth_observation_public
PySegCNN
Commits
68c3e8b2
Commit
68c3e8b2
authored
Jun 21, 2021
by
Frisinghelli Daniel
Browse files
Correct input to coordinate transformation.
parent
ae4a8194
Changes
1
Hide whitespace changes
Inline
Side-by-side
pysegcnn/core/utils.py
View file @
68c3e8b2
...
...
@@ -2828,11 +2828,12 @@ def clip_raster(src_ds, mask_ds, trg_ds, fmt=None, overwrite=False,
ds
=
gdal
.
Warp
(
str
(
tmp_path
),
str
(
src_path
),
outputBounds
=
extent
,
outputBoundsSRS
=
src_sr
,
dstSRS
=
src_sr
,
xRes
=
src_ds
.
GetGeoTransform
()[
1
],
yRes
=
src_ds
.
GetGeoTransform
()[
5
],
srcNodata
=
src_no_data
,
dstNodata
=
trg_no_data
,
targetAlignedPixels
=
True
,
#
targetAlignedPixels=True,
format
=
fmt
)
# compress raster dataset
...
...
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