<P> The treaty was ratified by Spain in 1820, and by the United States in 1821 (during the time that Spain and Mexico were engaged in the prolonged Mexican War of Independence). Spain finally recognized the independence of Mexico with the Treaty of Córdoba signed on August 24, 1821 . While Mexico was not initially a party to the Adams--Onís Treaty, in 1831 Mexico ratified the treaty by agreeing to the 1828 Treaty of Limits with the U.S. </P> <P> With the Russo - American Treaty of 1824, the Russian Empire ceded its claims south of parallel 54 ° 40 ′ north to the United States . With the Treaty of Saint Petersburg in 1825, Russia set the southern border of Alaska on the same parallel in exchange for the Russian right to trade south of that border and the British right to navigate north of that border . This set the absolute limits of the Oregon Country / Columbia District between the 42nd parallel north and the parallel 54 ° 40 ′ north west of the Continental Divide . </P> <P> By the mid-1830s, a controversy developed regarding the border with Texas, during which the United States demonstrated that the Sabine and Neches rivers had been switched on maps, moving the frontier in favor of Mexico . As a consequence, the eastern boundary of Texas was not firmly established until the independence of the Republic of Texas in 1836 . It was not agreed upon by the United States and Mexico until the Treaty of Guadalupe Hidalgo in 1848, which concluded the Mexican--American War . That treaty also formalized the cession by Mexico of Alta California and today's American Southwest, except for the territory of the later Gadsden Purchase of 1854 . </P> <P> Another dispute occurred after Texas joined the Union . The treaty stated that the boundary between the French claims on the north and the Spanish claims on the south was Rio Roxo de Natchitoches (Red River) until it reached the 100th meridian, as noted on the John Melish map of 1818 . But, the 100th meridian on the Melish map was marked some 90 miles (140 km) east of the true 100th meridian, and the Red River forked about 50 miles (80 km) east of the 100th meridian . Texas claimed the land south of the North Fork, and the United States claimed the land north of the South Fork (later called the Prairie Dog Town Fork Red River). In 1860 Texas organized the area as Greer County . The matter was not settled until a United States Supreme Court ruling in 1896 upheld federal claims to the territory, after which it was added to the Oklahoma Territory . </P>

Who was president when the united states bought florida from spain