コード例 #1
0
ファイル: source.py プロジェクト: mrojass/Scrap
 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
コード例 #2
0
ファイル: source.py プロジェクト: 1check1/my-first-blog
 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
コード例 #3
0
ファイル: source.py プロジェクト: Kenstogram/my-first-blog
    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