Commit 68856b5b authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed GeoArray.is_map_geo not containing a bool.



Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent ae41f576
......@@ -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
"""
Returns '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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment