コード例 #1
0
def test_make_geographic_3d_crs():
    gcrs = GeographicCRS(ellipsoidal_cs=Ellipsoidal3DCS())
    assert gcrs.type_name == "Geographic 3D CRS"
    expected_authority = ("IGNF", "WGS84GEODD")
    if PROJ_GTE_901:
        expected_authority = ("OGC", "CRS84h")
    assert gcrs.to_authority() == expected_authority
コード例 #2
0
ファイル: test_crs_maker.py プロジェクト: popeye2019/pyproj
def test_make_geographic_3d_crs():
    gcrs = GeographicCRS(ellipsoidal_cs=Ellipsoidal3DCS())
    assert gcrs.type_name == "Geographic 3D CRS"
    assert gcrs.to_authority() == ("IGNF", "WGS84GEODD")
コード例 #3
0
ファイル: test_crs_maker.py プロジェクト: popeye2019/pyproj
def test_make_geographic_crs():
    gc = GeographicCRS(name="WGS 84")
    assert gc.name == "WGS 84"
    assert gc.type_name == "Geographic 2D CRS"
    assert gc.to_authority() == ("OGC", "CRS84")
コード例 #4
0
def test_make_geographic_crs(tmp_path):
    gc = GeographicCRS(name="WGS 84")
    assert gc.name == "WGS 84"
    assert gc.type_name == "Geographic 2D CRS"
    assert gc.to_authority() == ("OGC", "CRS84")
    assert_can_pickle(gc, tmp_path)