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
geoarray
Commits
68856b5b
Commit
68856b5b
authored
May 28, 2021
by
Daniel Scheffler
Browse files
Fixed GeoArray.is_map_geo not containing a bool.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
ae41f576
Changes
1
Hide whitespace changes
Inline
Side-by-side
geoarray/baseclasses.py
View file @
68856b5b
...
...
@@ -330,7 +330,7 @@ class GeoArray(object):
@
property
def
epsg
(
self
):
# type: (
None
) -> int
# type: () -> int
"""Get the EPSG code of the projection of the GeoArray."""
return
WKT2EPSG
(
self
.
projection
)
...
...
@@ -348,9 +348,9 @@ class GeoArray(object):
def
is_map_geo
(
self
):
# type: () -> bool
"""
Return
s
'True' if the GeoArray instance has a valid geoinformation with map instead of image coordinates.
Return 'True' if the GeoArray instance has a valid geoinformation with map instead of image coordinates.
"""
return
self
.
gt
and
list
(
self
.
gt
)
!=
[
0
,
1
,
0
,
0
,
0
,
-
1
]
and
self
.
prj
return
all
([
self
.
gt
,
list
(
self
.
gt
)
!=
[
0
,
1
,
0
,
0
,
0
,
-
1
]
,
self
.
prj
])
@
property
def
nodata
(
self
):
...
...
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