iterating and exporting all combinations of features as shapefiles

المشرف العام

Administrator
طاقم الإدارة
I am trying to export individual shapefiles of all 2 pair combinations from a multi-feature polygon shapefile.

To explain this better as set of FID's 0, 1, 2, 3, 4 would be exported as individual shapefiles of FID pairs:

('0', '1'), ('0', '2'), ('0', '3'), ('0', '4'), ('1', '2'), ('1', '3'), ('1', '4'), ('2', '3'), ('2', '4'), ('3', '4')

I am not so good with python so my attempts with itertools.combination etc have not worked out.



أكثر...
 
أعلى