Germany–Poland border former also affected by the Silesian Uprisings). The shape of that border roughly resembled that of pre-partition Poland. After World War II, the border was drawn from Świnoujście (Swinemünde) in the north at the Baltic Sea southward to the Czech Republic (then part of Czechoslovakia) border with Poland and Germany near Zittau. It follows the Oder–Neisse Line of the Oder (Odra) and Neisse (Nysa) rivers through most of their course. This was agreed upon by the main Allies of World War II – USSR, USA and UK, at the Soviets' insistence, and, without any significant consultations with Poland (or Germany),
Latvia–Russia border On 16 January 1945, the area was transferred from the Latvian Soviet Socialist Republic to Pskov Oblast and renamed Pytalovsky District. Ever since Latvia regained independence, Latvia claimed the previous Latvian territory, on the basis of the 1920 Treaty of Riga. In 2007 a treaty on the Russian-Latvian state border was signed and ratified, and the Pytalovsky District remains part of Russia. Passage of the state border between the Russian Federation and the Republic of Latvia is determined on the basis of arrangements. According to the agreement on the Russian-Latvian State Border, the state border between Latvia and Russia starting