Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
geoarray
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Daniel Scheffler
geoarray
Commits
26587d10
Commit
26587d10
authored
Apr 29, 2019
by
Daniel Scheffler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugfix/fix_stretching' into 'master'
Bugfix/fix stretching See merge request
!6
parents
32d84cb9
59b4c1c9
Pipeline
#3930
passed with stages
in 1 minute and 47 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
geoarray/baseclasses.py
geoarray/baseclasses.py
+11
-4
geoarray/version.py
geoarray/version.py
+2
-2
No files found.
geoarray/baseclasses.py
View file @
26587d10
...
...
@@ -1054,7 +1054,10 @@ class GeoArray(object):
transOpt
=
[
'SRC_METHOD=NO_GEOTRANSFORM'
]
if
tuple
(
gt
)
==
(
0
,
1
,
0
,
0
,
0
,
-
1
)
else
None
xdim
,
ydim
=
None
,
None
nodataVal
=
nodataVal
if
nodataVal
is
not
None
else
self
.
nodata
in_nodata
=
nodataVal
if
nodataVal
is
not
None
else
self
.
nodata
out_nodata
=
in_nodata
if
in_nodata
is
not
None
else
-
9999
if
not
np
.
can_cast
(
out_nodata
,
image2plot
.
dtype
):
image2plot
=
image2plot
.
astype
(
np
.
int32
)
# rotated images always have to be resampled for plotting
if
gt
[
2
]
or
gt
[
4
]:
...
...
@@ -1070,8 +1073,12 @@ class GeoArray(object):
if
xdim
or
ydim
or
out_prj
:
from
py_tools_ds.geo.raster.reproject
import
warp_ndarray
image2plot
,
gt
,
prj
=
warp_ndarray
(
image2plot
,
self
.
geotransform
,
self
.
projection
,
out_XYdims
=
(
xdim
,
ydim
),
in_nodata
=
nodataVal
,
out_nodata
=
nodataVal
,
transformerOptions
=
transOpt
,
out_prj
=
out_prj
,
q
=
True
)
out_XYdims
=
(
xdim
,
ydim
),
in_nodata
=
in_nodata
,
out_nodata
=
out_nodata
,
transformerOptions
=
transOpt
,
out_prj
=
out_prj
,
q
=
True
)
if
transOpt
and
'NO_GEOTRANSFORM'
in
','
.
join
(
transOpt
):
image2plot
=
np
.
flipud
(
image2plot
)
gt
=
list
(
gt
)
...
...
@@ -1112,7 +1119,7 @@ class GeoArray(object):
band
=
(
band
if
band
is
not
None
else
0
)
if
not
interactive
else
band
# get image to plot
nodataVal
=
nodataVal
if
nodataVal
is
not
None
else
self
.
nodata
nodataVal
=
nodataVal
if
nodataVal
is
not
None
else
self
.
nodata
if
self
.
nodata
is
not
None
else
-
9999
image2plot
,
gt
,
prj
=
\
self
.
_get_plottable_image
(
xlim
,
ylim
,
band
,
boundsMap
=
boundsMap
,
boundsMapPrj
=
boundsMapPrj
,
res_factor
=
res_factor
,
nodataVal
=
nodataVal
)
...
...
geoarray/version.py
View file @
26587d10
__version__
=
'0.8.1
5
'
__versionalias__
=
'20190429.0
1
'
__version__
=
'0.8.1
6
'
__versionalias__
=
'20190429.0
2
'
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