示例#1
0
    def test_wkt_to_osr(self):
        self.assertTrue(
            georef.wkt_to_osr(self.wgs84).IsSame(
                georef.get_default_projection()))

        self.assertTrue(georef.wkt_to_osr().IsSame(
            georef.get_default_projection()))
示例#2
0
    def test_wkt_to_osr(self):
        self.assertTrue(georef.wkt_to_osr('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.0174532925199433,AUTHORITY["EPSG","9122"]],'
                                           'AUTHORITY["EPSG","4326"]]').IsSame(georef.get_default_projection()))

        self.assertTrue(georef.wkt_to_osr().IsSame(georef.get_default_projection()))
示例#3
0
    def test_wkt_to_osr(self):
        self.assertTrue(
            georef.wkt_to_osr(
                '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.0174532925199433,AUTHORITY["EPSG","9122"]],'
                'AUTHORITY["EPSG","4326"]]').IsSame(
                    georef.get_default_projection()))

        self.assertTrue(georef.wkt_to_osr().IsSame(
            georef.get_default_projection()))