Beispiel #1
0
def test_datum__from_string(input_str):
    dd = Datum.from_string(input_str)
    if PROJ_GTE_8:
        assert dd.name == "World Geodetic System 1984 ensemble"
        assert dd.type_name == "Datum Ensemble"
    else:
        assert dd.name == "World Geodetic System 1984"
        assert dd.type_name == "Geodetic Reference Frame"
Beispiel #2
0
def test_datum__from_string__invalid(invalid_str):
    with pytest.raises(CRSError, match="Invalid datum string"):
        Datum.from_string(invalid_str)
Beispiel #3
0
def test_datum__from_string__type_name(input_str, type_name):
    dd = Datum.from_string(input_str)
    assert dd.type_name == type_name
Beispiel #4
0
def test_datum__from_string(input_str):
    dd = Datum.from_string(input_str)
    assert dd.name == "World Geodetic System 1984 ensemble"
    assert dd.type_name == "Datum Ensemble"
Beispiel #5
0
def test_datum__from_string__invalid():
    with pytest.raises(CRSError, match="Invalid datum string"):
        Datum.from_string("3-598y5-98y")
    with pytest.raises(CRSError, match="Invalid datum string"):
        Datum.from_string("urn:ogc:def:ellipsoid:EPSG::7001")
Beispiel #6
0
def test_datum__from_string():
    dd = Datum.from_string("urn:ogc:def:datum:EPSG::6326")
    assert dd.name == "World Geodetic System 1984"
Beispiel #7
0
def test_datum__from_string(input_str):
    dd = Datum.from_string(input_str)
    assert dd.name == "World Geodetic System 1984"
    assert dd.type_name == "Geodetic Reference Frame"
Beispiel #8
0
def test_datum__from_string(input_str):
    dd = Datum.from_string(input_str)
    assert dd.name == "World Geodetic System 1984"