Beispiel #1
0
def test_ellipsoid__from_string(input_str):
    ee = Ellipsoid.from_string(input_str)
    assert ee.name == "Airy 1830"
Beispiel #2
0
def test_ellipsoid__from_string__invalid():
    with pytest.raises(CRSError, match="Invalid ellipsoid string"):
        Ellipsoid.from_string("3-598y5-98y")
    with pytest.raises(CRSError, match="Invalid ellipsoid string"):
        Ellipsoid.from_string("urn:ogc:def:datum:EPSG::6326")
Beispiel #3
0
def test_ellipsoid__from_string__invalid(invalid_str):
    with pytest.raises(CRSError, match="Invalid ellipsoid string"):
        Ellipsoid.from_string(invalid_str)
Beispiel #4
0
def test_ellipsoid__from_string():
    ee = Ellipsoid.from_string("urn:ogc:def:ellipsoid:EPSG::7001")
    assert ee.name == "Airy 1830"