예제 #1
0
파일: test_crs.py 프로젝트: djhoese/pyproj
def test_coordinate_operation__from_authority__empty():
    with pytest.raises(CRSError, match="Invalid authority"):
        CoordinateOperation.from_authority("BOB", 4326)
예제 #2
0
파일: test_crs.py 프로젝트: djhoese/pyproj
def test_coordinate_operation__from_authority():
    cc = CoordinateOperation.from_authority("EPSG", 16031)
    assert cc.method_auth_name == "EPSG"
    assert cc.method_code == "9807"