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
def test_make_geographic_3d_crs(): gcrs = GeographicCRS(ellipsoidal_cs=Ellipsoidal3DCS()) assert gcrs.type_name == "Geographic 3D CRS" assert gcrs.to_authority() == ("IGNF", "WGS84GEODD")
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")
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)