I have two shapefiles, one which contains event locations and the the other of which represents regions where events take place.
- Events polygons with
year
andregion_name
attributes - Regions polygons, which also have
year
andregion_name
attributes
The Event polygons sometimes extend beyond their proper Region. Regions sometimes change boundaries, which is why they also have a year
attribute. I would like to clip each Event polygon using the appropriate Region polygon, i.e. the one with matching year
and region_name
attributes. Here is an image I made to illustrate the basic idea:
Some solutions I've tried but which have been unsatisfactory:
- Doing it manually (selecting each event and region by hand and clipping them), which seems unnecessarily tedious
- Using Select By Location to isolate the Events in each Region, which still requires working with each selection manually
- Using Intersect, which 1) leaves lots of event "remnants" outside their proper regions and 2) "oversplits" by dividing all Event polygons by all Region polygons, regardless of year
Note: I use both QGIS 1.8 and ArcMap 10.1. I can't install extensions for ArcGIS (I don't have administrative access) but I can use Python scripts.