def test_coordinate_operation__from_name_auth_type(): co = CoordinateOperation.from_name( "ITRF_2000_To_WGS_1984", auth_name="ESRI", coordinate_operation_type=CoordinateOperationType.TRANSFORMATION, ) assert co.name == "ITRF_2000_To_WGS_1984"
def test_coordinate_operation__from_name__invalid(invalid_str): with pytest.raises(CRSError, match="Invalid coordinate operation name"): CoordinateOperation.from_name(invalid_str)
def test_coordinate_operation__from_name(): co = CoordinateOperation.from_name("UTM zone 12N") assert co.name == "UTM zone 12N"