I have shapefiles with maps of school districts by state. However, some of these districts go beyond the state's area, shown below. I want to preserve the districts, just remove all the bits going out into the lakes and such. How can I automatically adjust the boundries of the districts that extend beyond the state's land mass so that they don't any longer?
Ideally, using QGIS, but any solution is welcome. In other words, I'm just looking to cut off features in the school district shapefiles based on the Michigan feature in the U.S. map shapefile.