def srs(self): """ Returns the Spatial Reference used in this GDALRaster. """ try: wkt = capi.get_ds_projection_ref(self.ptr) return SpatialReference(wkt, srs_type='wkt') except SRSException: return None
def srs(self): """ <<<<<<< HEAD Returns the SpatialReference used in this GDALRaster. ======= Return the SpatialReference used in this GDALRaster. >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 """ try: wkt = capi.get_ds_projection_ref(self._ptr) if not wkt: return None return SpatialReference(wkt, srs_type='wkt') except SRSException: return None