def _print_geotiff(self):
if self.data is None:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>in_mem_name = '<STR_LIT>'<EOL>gdal.FileFromMemBuffer(in_mem_name, self.raw_data)<EOL>gtif = gdal.Open(in_mem_name)<EOL>proj_ref = gtif.GetProjectionRef()<EOL>sref = osr.SpatialReference()<EOL>sref.ImportFromWkt(proj_ref)<EOL>psz_pretty_wkt = sref.ExportToPrettyWkt(False)<EOL>geo_transform = gtif.GetGeoTransform(can_return_null=True)<EOL>fmt = ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>geotransform_str = fmt.format(origin_x=geo_transform[<NUM_LIT:0>],<EOL>origin_y=geo_transform[<NUM_LIT:3>],<EOL>pixel_x=geo_transform[<NUM_LIT:1>],<EOL>pixel_y=geo_transform[<NUM_LIT:5>])<EOL>if proj_ref is not None and len(proj_ref) > <NUM_LIT:0>:<EOL><INDENT>hProj = osr.SpatialReference(proj_ref)<EOL>if hProj is not None:<EOL><INDENT>hLatLong = hProj.CloneGeogCS()<EOL><DEDENT>if hLatLong is not None:<EOL><INDENT>gdal.PushErrorHandler('<STR_LIT>')<EOL>hTransform = osr.CoordinateTransformation(hProj, hLatLong)<EOL>gdal.PopErrorHandler()<EOL>msg = '<STR_LIT>'<EOL><DEDENT><DEDENT>uleft = self.GDALInfoReportCorner(gtif, hTransform, "<STR_LIT>", <NUM_LIT:0>, <NUM_LIT:0>)<EOL>lleft = self.GDALInfoReportCorner(gtif, hTransform, "<STR_LIT>",<EOL><NUM_LIT:0>, gtif.RasterYSize)<EOL>uright = self.GDALInfoReportCorner(gtif, hTransform, "<STR_LIT>",<EOL>gtif.RasterXSize, <NUM_LIT:0>)<EOL>lright = self.GDALInfoReportCorner(gtif, hTransform, "<STR_LIT>",<EOL>gtif.RasterXSize, gtif.RasterYSize)<EOL>center = self.GDALInfoReportCorner(gtif, hTransform, "<STR_LIT>",<EOL>gtif.RasterXSize / <NUM_LIT>,<EOL>gtif.RasterYSize / <NUM_LIT>)<EOL>gdal.Unlink(in_mem_name)<EOL>fmt = ("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>msg = fmt.format(coordinate_system=self._indent(psz_pretty_wkt),<EOL>geotransform=geotransform_str,<EOL>upper_left=uleft, upper_right=uright,<EOL>lower_left=lleft, lower_right=lright, center=center)<EOL>return msg<EOL>
Print geotiff information.  Shamelessly ripped off from gdalinfo.py

Returns
-------
str
    String representation of the degenerate geotiff.