def test_coordinate_system_from_json_dict(): # separate test from other properties due to # https://github.com/OSGeo/PROJ/issues/1818 aeqd_cs = CRS(proj="aeqd", lon_0=-80, lat_0=40.5).coordinate_system assert CoordinateSystem.from_json_dict(aeqd_cs.to_json_dict()) == aeqd_cs
def test_crs_from_json_dict(): aeqd_crs = CRS(proj="aeqd", lon_0=-80, lat_0=40.5) assert CRS.from_json_dict(aeqd_crs.to_json_dict()) == aeqd_crs
def test_crs_to_json_dict(): aeqd_crs = CRS(proj="aeqd", lon_0=-80, lat_0=40.5) json_dict = aeqd_crs.to_json_dict() assert json_dict["type"] == "ProjectedCRS"