0

Re-learning QGIS after a four-year hiatus. I'm trying to make a basic map of the state of Nebraska, complete with county boundaries and a river-system shapefile. I have both shapefiles present in the layers and all is well except the rivers extend beyond the boundary of the state. How can I cut away the rivers laying outside of the state-boundary.

Nebraska and River shapefiles

Vince
  • 20,017
  • 15
  • 45
  • 64
  • Please have a look at other questions here, you may find that your questions has been asked and answered many times. Try seraching for "clipping" – Vincé Dec 01 '22 at 19:47

1 Answers1

0
  1. Explode lines on the rivers layer.

  2. Select by location: Select features from rivers layer > disjoint > by comparing to the features from county layer.

  3. Delete selected features.

  4. Aggregate the remaining lines, based on a common attribute of the initial river lines like id or name.

Babel
  • 71,072
  • 14
  • 78
  • 208