def test_geodetic_isometric(geodetic_lat, isometric_lat):
    assert pm.geodetic2isometric(geodetic_lat) == approx(isometric_lat)
    assert pm.geodetic2isometric(radians(geodetic_lat),
                                 deg=False) == approx(radians(isometric_lat))

    assert pm.isometric2geodetic(isometric_lat) == approx(geodetic_lat)
    assert pm.isometric2geodetic(radians(isometric_lat),
                                 deg=False) == approx(radians(geodetic_lat))
예제 #2
0
def test_geodetic_isometric(geodetic_lat, isometric_lat):
    isolat = pm.geodetic2isometric(geodetic_lat)
    assert isolat == approx(isometric_lat)
    assert isinstance(isolat, float)

    assert pm.geodetic2isometric(radians(geodetic_lat), deg=False) == approx(radians(isometric_lat))

    assert pm.isometric2geodetic(isometric_lat) == approx(geodetic_lat)
    assert pm.isometric2geodetic(radians(isometric_lat), deg=False) == approx(radians(geodetic_lat))
def test_numpy_geodetic_isometric():
    pytest.importorskip("numpy")
    assert pm.geodetic2isometric([45, 0]) == approx([50.227466, 0])
    assert pm.isometric2geodetic([50.227466, 0]) == approx([45, 0])