In turn, Genesee County was created from Ontario County in 1802. Niagara County was created from Genesee County in 1808. It was, however, larger than the present Niagara County even though it consisted of only the Town of Cambria. From 1814 to 1817, records of Cattaraugus County were divided between Belmont (the seat of Allegany County) and Buffalo (then in Niagara County). Niagara County governed the western portion of Cattaraugus County, then known as the town of Perry. In 1821, Erie County was created from Niagara County. The county has a number of properties on the National Register of Historic Places. According to the U.S. Census Bureau, the county has a total area of , of which is land and (54%) is water. Niagara County is in the extreme western part of New York State, just north of Buffalo and adjacent to Lake Ontario on its northern border and the Niagara River and Canada on its western border. The county's primary geographic feature is Niagara Falls, the riverbed of which has eroded seven miles south over the past 12,000 years since the last Ice Age. The Niagara River and Niagara Falls, are in effect, the drainage ditch for four of the Great Lakes which constitute the world's largest supply of fresh water. The water flows north from Lake Erie, then through the Niagara River, goes over Niagara Falls, and then on to Lake Ontario and the St. Lawrence River, eventually emptying into the North Atlantic Ocean. Today, tourists and visitors to the Falls see a diminished flow of water over the Falls, since a portion of the flow has been diverted for hydroelectric power purposes. Both the American and Canadian side of the Niagara River have massive electrical power plants. The spectacular Niagara Gorge is the path Niagara Falls has taken over thousands of years as it continues to erode. Niagara Falls started at the Niagara Escarpment which cuts Niagara County in half in an east-west direction. North of the Escarpment lies the Lake Ontario plain, which is a fertile flatland used to grow grapes, apples, peaches and other fruits and vegetables. The grape variety Niagara, source of most American white grape juice but not esteemed for wine, was first grown in the county, in 1868. Viticulture, or wine culture has begun to take place, with several wineries below the escarpment. This has helped to improve the depressed economy of the region. To further capitalize on economic development, the state has created the Niagara Wine Trail.