Пример #1
0
 def crs_id(self) -> Optional[str]:
     if self._crs is None:
         return None
     return GdalAux.crs_id(self._crs)
Пример #2
0
 def test_crs_id(self):
     wkt = """
     GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]
     """
     self.assertEqual(GdalAux.crs_id(wkt=wkt), "4326")