I have a polygon shapefile that consists of different polygon features. Each polygon features can be identified by a unique group_id
. I also have a line shapefile with different straight line features that lie on top of the polygons. Similar to the polygon file, each line feature has a unique 'group_id', which are the same as the ones found in the polygon file.
I would like to cut each polygon feature by these line features, but only those that share the same group_id
. I'm aware I can use the Split by Line features, however this will use all line features to cut all polygon features, neglecting the group_id
.
Any ideas how I could perform some sort of group by function?