Gmina Szamocin is an urban-rural gmina in Chodzież County, Greater Poland Voivodeship, in west-central Poland. Its seat is the town of Szamocin, which lies approximately 16 kilometres east of Chodzież and 72 km north of the regional capital Poznań. The gmina covers an area of 125.46 square kilometres, and as of 2006 its total population is 7,292.
Less