Commit 4f79c48e authored by Daniel Scheffler's avatar Daniel Scheffler

Added 'is_map_geo' attribute to GeoArray. Updated version info.

parent 5ad7e8b2
Pipeline #3387 passed with stages
in 1 minute and 40 seconds
......@@ -331,6 +331,14 @@ class GeoArray(object):
mapPoly = get_footprint_polygon(get_corner_coordinates(gt=self.geotransform, cols=self.columns, rows=self.rows))
return boxObj(gt=self.geotransform, prj=self.projection, mapPoly=mapPoly)
@property
def is_map_geo(self):
# type: () -> bool
"""
Returns '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
@property
def nodata(self):
"""
......
__version__ = '0.8.8'
__versionalias__ = '20181205.01'
__version__ = '0.8.9'
__versionalias__ = '20181213.01'
Markdown is supported
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